<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/libexec/rtld-elf/Symbol.map, branch release/9.0.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F9.0.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F9.0.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2011-02-20T16:16:42Z</updated>
<entry>
<title>Remove a hack made obsolete by the binutils 2.17 merge.</title>
<updated>2011-02-20T16:16:42Z</updated>
<author>
<name>Nathan Whitehorn</name>
<email>nwhitehorn@FreeBSD.org</email>
</author>
<published>2011-02-20T16:16:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7a159e49711dedf6be9c8579ac46a22da8d2e47b'/>
<id>urn:sha1:7a159e49711dedf6be9c8579ac46a22da8d2e47b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>In rtld, read the initial stack access mode from AT_STACKPROT as set</title>
<updated>2011-01-08T17:11:49Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2011-01-08T17:11:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=212f264cd6bb3e32cabaf98f2340337756acf089'/>
<id>urn:sha1:212f264cd6bb3e32cabaf98f2340337756acf089</id>
<content type='text'>
by kernel, and parse PT_GNU_STACK phdr from linked and loaded dsos.

If the loaded dso requires executable stack, as specified by PF_X bit
of p_flags of PT_GNU_STACK phdr, but current stack protection does not
permit execution, the __pthread_map_stacks_exec symbol is looked up
and called. It should be implemented in libc or threading library and
change the protection mode of all thread stacks to be executable.

Provide a private interface _rtld_get_stack_prot() to export the stack
access mode as calculated by rtld.

Reviewed by:	   kan
</content>
</entry>
<entry>
<title>Introduce implementation-private rtld interface _rtld_addr_phdr, which</title>
<updated>2010-08-23T15:27:03Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2010-08-23T15:27:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e048186a626fdd1dc11f7dc9336a49a556a13cb5'/>
<id>urn:sha1:e048186a626fdd1dc11f7dc9336a49a556a13cb5</id>
<content type='text'>
fills struct dl_phdr_info for the shared object that contains the
specified address, if any.

Idea and reviewed by:	kan
MFC after:	3 weeks
</content>
</entry>
<entry>
<title>RTLD support for powerpc64. A few small modifications to the Makefile</title>
<updated>2010-07-10T17:43:24Z</updated>
<author>
<name>Nathan Whitehorn</name>
<email>nwhitehorn@FreeBSD.org</email>
</author>
<published>2010-07-10T17:43:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=27bd4146a177c20add372774250309ddc956a891'/>
<id>urn:sha1:27bd4146a177c20add372774250309ddc956a891</id>
<content type='text'>
and symbol map are required to support various consequences of the dot
symbol scheme:

- Symbols beginning with a dot are reserved, so start private symbols with
  an underscore.
- In order to set RTLD breakpoints, gdb must be able to locate the text
  entry point, not the data section function descriptor, so add
  .r_debug_state to the symbol map on powerpc64.

Obtained from:	projects/ppc64
</content>
</entry>
<entry>
<title>Allow the NULL, RTLD_SELF and RTLD_NEXT handles to work with dlfunc(3).</title>
<updated>2009-04-03T19:17:23Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2009-04-03T19:17:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c8da4f07d763e3bb6769ab4b7cb83774ecbac824'/>
<id>urn:sha1:c8da4f07d763e3bb6769ab4b7cb83774ecbac824</id>
<content type='text'>
dlfunc() called dlsym() to do the work, and dlsym() determines the dso
that originating the call by the return address. Due to this, dlfunc()
operated as if the caller is always the libc.

To fix this, move the dlfunc() to rtld, where it can call the internal
implementation of dlsym, and still correctly fetch return address.
Provide usual weak stub for the symbol from libc for static binaries.
dlfunc is put to FBSD_1.0 symver namespace in the ld.so export to
override dlfunc@FBSD_1.0 weak symbol, exported by libc.

Reported, analyzed and tested by:	Tijl Coosemans &lt;tijl ulyssis org&gt;
PR: standards/133339
Reviewed by:	kan
</content>
</entry>
<entry>
<title>Add two rtld exported symbols, _rtld_atfork_pre and _rtld_atfork_post.</title>
<updated>2008-11-27T11:27:59Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2008-11-27T11:27:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cb5c4b10ba7c6d9f83b961c24be8f766ea6156c0'/>
<id>urn:sha1:cb5c4b10ba7c6d9f83b961c24be8f766ea6156c0</id>
<content type='text'>
Threading library calls _pre before the fork, allowing the rtld to
lock itself to ensure that other threads of the process are out of
dynamic linker. _post releases the locks.

This allows the rtld to have consistent state in the child. Although
child may legitimately call only async-safe functions, the call may
need plt relocation resolution, and this requires working rtld.

Reported and debugging help by:	rink
Reviewed by:	kan, davidxu
MFC after:	1 month (anyway, not before 7.1 is out)
</content>
</entry>
<entry>
<title>Add  r_debug_state to the list of symbols exported from rtld. GDB needs to</title>
<updated>2007-07-11T23:07:37Z</updated>
<author>
<name>Alexander Kabaev</name>
<email>kan@FreeBSD.org</email>
</author>
<published>2007-07-11T23:07:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=03c4fb02ddd7023b42a3f524282c3b5a62d7de49'/>
<id>urn:sha1:03c4fb02ddd7023b42a3f524282c3b5a62d7de49</id>
<content type='text'>
be able to find it in order to trap shared library events from rtld.

Approved by:	re (rwatson)
</content>
</entry>
<entry>
<title>Catch up with the private namespace change (s/FBSDprivate/FBSDprivate_1.0).</title>
<updated>2007-05-01T13:46:27Z</updated>
<author>
<name>Daniel Eischen</name>
<email>deischen@FreeBSD.org</email>
</author>
<published>2007-05-01T13:46:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7046601eca76f86e597ea5a581c56c9058704d43'/>
<id>urn:sha1:7046601eca76f86e597ea5a581c56c9058704d43</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use C comments since we now preprocess these files with CPP.</title>
<updated>2007-04-29T14:05:22Z</updated>
<author>
<name>Daniel Eischen</name>
<email>deischen@FreeBSD.org</email>
</author>
<published>2007-04-29T14:05:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5f864214bbb2612cbb8b1b69d124036711b73946'/>
<id>urn:sha1:5f864214bbb2612cbb8b1b69d124036711b73946</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bring rtld exports in line with corresponding symbols exported from</title>
<updated>2007-04-09T23:00:29Z</updated>
<author>
<name>Alexander Kabaev</name>
<email>kan@FreeBSD.org</email>
</author>
<published>2007-04-09T23:00:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3c0d0ca74b8df7affbffd810a406600848ba6383'/>
<id>urn:sha1:3c0d0ca74b8df7affbffd810a406600848ba6383</id>
<content type='text'>
libc.

Disable SYMVER_DEFAULT n rtld until its implications are understood
better.
</content>
</entry>
</feed>
