This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu 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]

Library mapping


Hello,

I'm watching through /proc/<pid>/maps on my Linux 2.4.3 computers that 
the same program gets its libraries (and their data segments) mapped to 
different locations on virtual memory. The same OS configuration and 
libraries are installed on a (1) Pentium 225 and a (2) Pentium III.

I'm a compiling the program on (1) and executing on both of them. I'm 
expecting to see their /proc/<pid>/maps be the same for the same point 
in the program. But they are not. Might this be because of their 
hardware differences? When a program compiled (non-statically), are the 
locations where shared objects are mapped known at compile time or are 
they resolved at load time by ld.so?

Note: I'm doing some low level stuff to overwrite the data segments for 
libraries after loading.

-- 
Muzaffer Ozakca
Researcher/Software Engineer  -  muzaffer.ozakca@bilten.metu.edu.tr
TUBITAK-Bilten-ODTU - Communication Systems and Comp. Networks Group
ODTU, Ankara, Turkey
http://www.bilten.metu.edu.tr/   tel: +90-312-210 1311


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