<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/libexec/rtld-elf, 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-11-26T08:22:11Z</updated>
<entry>
<title>MFC r227660:</title>
<updated>2011-11-26T08:22:11Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2011-11-26T08:22:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=946b98f4bea13fbc517512bcfbc1bad689111849'/>
<id>urn:sha1:946b98f4bea13fbc517512bcfbc1bad689111849</id>
<content type='text'>
Fix fd leak.

Approved by:	re (bz)
</content>
</entry>
<entry>
<title>MFC r226156:</title>
<updated>2011-10-10T14:48:18Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2011-10-10T14:48:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2d019e6a1b7cec27b39f82fff00d5a0dfe0bc080'/>
<id>urn:sha1:2d019e6a1b7cec27b39f82fff00d5a0dfe0bc080</id>
<content type='text'>
Handle the R_386_TLS_TPOFF32 relocation.

Approved by:	re (bz)
</content>
</entry>
<entry>
<title>MFC r226155:</title>
<updated>2011-10-10T14:46:40Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2011-10-10T14:46:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=44aa7bda2727c5e3bb21a03337aacbcd565915f8'/>
<id>urn:sha1:44aa7bda2727c5e3bb21a03337aacbcd565915f8</id>
<content type='text'>
Setting up TLS block for the main thread must be done after the
relocations are processed.

Approved by:	re (bz)
</content>
</entry>
<entry>
<title>Restore the writing of the .bss sections of the dsos (not the main</title>
<updated>2011-09-20T21:49:54Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2011-09-20T21:49:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=750b5e3134467ec8257e1a0c01d96c89be5af3cf'/>
<id>urn:sha1:750b5e3134467ec8257e1a0c01d96c89be5af3cf</id>
<content type='text'>
executable) after r190885. The whole region for the dso is mmaped with
MAP_NOCORE flag, doing only mprotect(2) over .bss prevented it from
writing .bss to core files.

Revert the optimization of using mprotect(2) to establish .bss, overlap
the section with mmap(2).

Reported by:	attilio
Reviewed by:	attilio, emaste
Approved by:	re (bz)
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Use the proper dynamic tls block to calculate the tls variable address</title>
<updated>2011-09-15T11:50:09Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2011-09-15T11:50:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f785588713928420f4f232ae6d8e070f71df9af2'/>
<id>urn:sha1:f785588713928420f4f232ae6d8e070f71df9af2</id>
<content type='text'>
in case tls data generation was updated.

PR:	misc/160721
Submitted by:	"Thinker K.F. Li" &lt;thinker codemud net&gt;
Tested by:	flo
Approved by:	re (bz)
MFC after:	1 week
</content>
</entry>
<entry>
<title>Do not use the function pointers for the internal operation of rtld_printf()</title>
<updated>2011-09-06T10:21:33Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2011-09-06T10:21:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b236731716168a130e176bbd18d4790a6d3940d6'/>
<id>urn:sha1:b236731716168a130e176bbd18d4790a6d3940d6</id>
<content type='text'>
functions. The _rtld_error() function might be called early during the rtld
bootstrap, in which case function pointers are not yet functional on ia64
due to required relocations not yet performed.

Reported, reviewed and tested by:	marcel
Approved by:	re (bz)
</content>
</entry>
<entry>
<title>When libexec/rtld-elf/rtld.c is compiled with clang, the r_debug_state()</title>
<updated>2011-09-03T11:41:00Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2011-09-03T11:41:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cce0f33cda82c82c95dfc658f12d53f0fe9db6df'/>
<id>urn:sha1:cce0f33cda82c82c95dfc658f12d53f0fe9db6df</id>
<content type='text'>
function (a hook necessary for gdb support), is inlined, but since the
function contains no code, no calls to it are generated.  When gdb is
debugging a dynamically linked program, this causes backtraces to be
corrupted.

Fix it by marking the function __noinline, and inserting an empty asm
statement, that pretends to clobber memory.  This forces the compiler to
emit calls to r_debug_state() throughout rtld.c.

Approved by:	re (kib)
</content>
</entry>
<entry>
<title>Rtld links with the specially built pic static libc library to get some</title>
<updated>2011-08-24T20:05:13Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2011-08-24T20:05:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0e9a2605200b721fdfcf32d2c95f79a81fc84352'/>
<id>urn:sha1:0e9a2605200b721fdfcf32d2c95f79a81fc84352</id>
<content type='text'>
C runtime services, like printf(). Unfortunately, the multithread-safeness
measures in the libc do not work in rtld environment.

Rip the kernel printf() implementation and use it in the rtld instead of
libc version. This printf does not require any shared global data and thus
is mt-safe. Systematically use rtld_printf() and related functions, remove
the calls to err(3).

Note that stdio is still pulled from libc due to libmap implementaion using
fopen(). This is safe but unoptimal, and can be changed later.

Reported and tested by:	pgj
Diagnosed and reviewed by:	kan (previous version)
Approved by:	re (bz)
</content>
</entry>
<entry>
<title>Fix clang warnings.</title>
<updated>2011-06-18T13:56:33Z</updated>
<author>
<name>Ben Laurie</name>
<email>benl@FreeBSD.org</email>
</author>
<published>2011-06-18T13:56:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5f301949ef1a0e2444e6a0b6700c8bcf400498fc'/>
<id>urn:sha1:5f301949ef1a0e2444e6a0b6700c8bcf400498fc</id>
<content type='text'>
Approved by:	philip (mentor)
</content>
</entry>
<entry>
<title>Compile RTLD with global dot symbols on 64-bit PowerPC, as a crutch for</title>
<updated>2011-06-08T13:23:35Z</updated>
<author>
<name>Nathan Whitehorn</name>
<email>nwhitehorn@FreeBSD.org</email>
</author>
<published>2011-06-08T13:23:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f33b8de1dc158be11a1eee597894abe47de8819d'/>
<id>urn:sha1:f33b8de1dc158be11a1eee597894abe47de8819d</id>
<content type='text'>
GDB's ability to locate r_debug_state (which is actually the only function
that need be compiled this way).
</content>
</entry>
</feed>
