Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jan 2007 18:00:46 +0900
From:      takawata@jp.freebsd.org
To:        freebsd-hackers@freebsd.org
Cc:        nork@freebsd.org
Subject:   some symbols of libc may be resolved by RTLD internal entities.
Message-ID:  <200701300900.l0U90kFA049949@sana.init-main.com>

next in thread | raw e-mail | index | archive | help
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?





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701300900.l0U90kFA049949>