Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
google site



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 !!

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Search this Thread
  #1  
Old 12-25-2009
Registered User
 

Join Date: Nov 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:58 PM.