This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Help on Prelink.


I'm not sure this is the current forum to post this question, if not please
guide me to move to appropriate forum.

We're working on porting an application to different GCC version (3.4.3 - >
4.4.1), during which noticed the base addresses of few system libraries are
changes which is causing a problem to get more VM space.

In order to get contigious VM space, opted to use PRE-LINK tool to move the
libs to a desired address.

Currently, the movement is based on the existing map. Steps:

Captured the process map (cat /proc/<PID>/maps) without pre-link :

For : ld.so

0ffc0000-0ffdf000 r-xp 00000000 00:0f 8270796    /lib/ld-2.11.1.so
0ffee000-0ffef000 r--p 0001e000 00:0f 8270796    /lib/ld-2.11.1.so
0ffef000-0fff0000 rw-p 0001f000 00:0f 8270796    /lib/ld-2.11.1.so

0ffc0000 - 0fff0000 = ~1.36 MB


So if we need to prelink ld.so to a desired address then allocation needs to
happen like desired address + 1.4 MB + 4KB gap  before start next allocation
?

Thanks in Advance.



--
View this message in context: http://sourceware-org.1504.n7.nabble.com/Help-on-Prelink-tp230480.html
Sent from the Sourceware - libc-alpha mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]