Hi fellow developers,

I am new to Android and trying to understand how Android authors have
decided the size of prelinked libraries mentioned in prelink-linux-arm.map
file.

For example, in prelink map file:

--
libcrypto.so            0xAF000000 # [~4M]
--

However, the size of the same indicated by objdump is:
--
[LINKED$]$ arm-eabi-size libcrypto.so
   text   data    bss    dec    hex filename
 640830  71432   8320 720582  afec6 libcrypto.so
--

When checking the virtual memory map of a process using /proc/<pid>/maps
file of a process using libcrypto - just the text and data sections show up
there.  The size of these sections is less than 1M - so why do we reserve 4M
in prelink map for the same?  How is the 4M value for this example derived?

Thanks,
Sandeep

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to