some symbols of libc may be resolved by RTLD internal entities.

takawata at jp.freebsd.org takawata at jp.freebsd.org
Tue Jan 30 09:31:54 UTC 2007


Hi, 

It seems that some symbols in libc is resolved by libc entities
which is linked with RTLD to implement it.

% nm -D ld-elf.so.1
...
000158ec T mmap
0000c4fc W mprotect
0000c4dc W munmap
...

And running Flash9 with Symbol Versioning-aware Linux Plugin Wrapper
shows that mmap cannot be overrided. mmap is called with strange 
argument.

  4201 seamonkey-bin CALL  mmap(0xffffffff,0x100000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_RENAME,0xffffffff,0,0,0x280875e4)
But sometimes munmap can be hooked.

Is this intended behavior that libc symbols in rtld is exported?
And are there any way to stop exporting it?




More information about the freebsd-hackers mailing list