|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
![]() |
|
|
Search this Thread |
|
#1
|
|||
|
|||
|
change the memory address of ld.linux-so in a dynamically linked process
hi,
For some special reason , I'd like to control the memory address for the shared libraries in my dynamically linked process. And it is the "ld" which interpret the dynamically linked library, and in my system, the "ld-linux.so.2" is put at 0x00812000. Then I use "prelink -r" command to change it address into "0x40000000", and use the "gcc -specs" to choose the new "ld-linux.so.2" as my default interpreter, the the program is compiled and when I use "ldd" I can see the "ld-linux.so.2" is put at "0x4000000" , but when I run the process, it crashed? I find it crash at "_dl_bebug_initialize()" , which access a not exist memory address, "0x008294e0" , I think it is the "got" in the former image. so is there any solution? Thanks a lot! ps : Though I have update the gcc specs to choose the new "ld-linux.so.2" as my default interpreter, how can I choose other libraries, such as "libc.so.6","libgcc_s.so.1" and so on. Double post... continue here. |
| Sponsored Links | ||
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| change the memory address of ld.linux-so in a dynamically linked process | zerocool_08 | Linux | 3 | 12-26-2009 10:12 PM |
| process memory change in unix | aginger | UNIX for Advanced & Expert Users | 2 | 06-12-2008 01:54 PM |
| setuid bit on user + dynamically linked libraries | matrixmadhan | Programming | 5 | 10-08-2006 03:33 PM |
| dynamically linked file | sveera | UNIX for Advanced & Expert Users | 5 | 06-03-2005 02:52 PM |
| dynamically linked file | sveera | Shell Programming and Scripting | 1 | 05-06-2005 02:40 PM |