<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/libexec/rtld-elf, branch release/13.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-07-31T18:59:43Z</updated>
<entry>
<title>rtld: Define MD_OBJ_ENTRY for mips</title>
<updated>2024-07-31T18:59:43Z</updated>
<author>
<name>Jessica Clarke</name>
<email>jrtc27@FreeBSD.org</email>
</author>
<published>2024-07-31T18:59:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b72e57d6c9414005ed991c6cccb1aed24e4718aa'/>
<id>urn:sha1:b72e57d6c9414005ed991c6cccb1aed24e4718aa</id>
<content type='text'>
This is a direct commit to stable/13.

Reported by:	mmel
Fixes:		f9210d37c5c6 ("rtld: Add MD_OBJ_ENTRY to extend Struct_Obj_Entry")
</content>
</entry>
<entry>
<title>rtld: Add MD_OBJ_ENTRY to extend Struct_Obj_Entry</title>
<updated>2024-07-15T12:34:29Z</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2024-05-07T15:49:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f9210d37c5c6ef427af619f2bf0ff7157415fa47'/>
<id>urn:sha1:f9210d37c5c6ef427af619f2bf0ff7157415fa47</id>
<content type='text'>
Add a macro the architectures can use to add per-arch fields to
Struct_Obj_Entry.

Reviewed by:	kib
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D45116

(cherry picked from commit 06db20ffeca9898e5802d63f3b06caaa37c3a4ed)
</content>
</entry>
<entry>
<title>rtld.1: clarify interaction between -u and -o</title>
<updated>2024-05-07T08:59:07Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2024-04-28T21:45:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f73055ab1e2f46620759da0aba19c8f4a11316bd'/>
<id>urn:sha1:f73055ab1e2f46620759da0aba19c8f4a11316bd</id>
<content type='text'>
(cherry picked from commit 6a7819e43f938992304472054c83f4a6602a9e19)
</content>
</entry>
<entry>
<title>rtld direct exec: make -u behavior match the description</title>
<updated>2024-05-07T08:59:07Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2024-04-28T20:57:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e45b440633f9878baf019d3ef557bd2be103c3f9'/>
<id>urn:sha1:e45b440633f9878baf019d3ef557bd2be103c3f9</id>
<content type='text'>
(cherry picked from commit ef2694f368cee5957ee44b0298da88ff8360d561)
</content>
</entry>
<entry>
<title>rtld: add direct-exec option -o</title>
<updated>2024-05-07T08:59:07Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2024-04-28T03:19:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=10484ee13a36e3b0523e8de441c4d528148fd1a3'/>
<id>urn:sha1:10484ee13a36e3b0523e8de441c4d528148fd1a3</id>
<content type='text'>
(cherry picked from commit d1cd0cc32b53c09e72e33116b94a5b0b9781a183)
</content>
</entry>
<entry>
<title>rtld snprintf: do not erronously skip a char at the buffer boundary</title>
<updated>2024-05-03T00:26:26Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2024-04-28T06:37:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d9ec850bde3c8695bebfdfeea72deb1d060cd183'/>
<id>urn:sha1:d9ec850bde3c8695bebfdfeea72deb1d060cd183</id>
<content type='text'>
(cherry picked from commit 56ee5fc43c40479e2651b21862e299bcf73017ae)
</content>
</entry>
<entry>
<title>rtld(1): minor clarification for LD_STATIC_TLS_EXTRA</title>
<updated>2024-04-23T00:32:54Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2024-04-20T13:47:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ed9f44083dbaf9b1bde1d81f7b48308e1dc33138'/>
<id>urn:sha1:ed9f44083dbaf9b1bde1d81f7b48308e1dc33138</id>
<content type='text'>
(cherry picked from commit 8d7473703520f315c1bcd3b3d12498eee10d563e)
</content>
</entry>
<entry>
<title>rtld: introduce STATIC_TLS_EXTRA</title>
<updated>2024-04-23T00:32:54Z</updated>
<author>
<name>Stephen J. Kiernan</name>
<email>stevek@FreeBSD.org</email>
</author>
<published>2023-10-29T21:13:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=57d49c4bcb494bb6c630713369fe6f0a0b277944'/>
<id>urn:sha1:57d49c4bcb494bb6c630713369fe6f0a0b277944</id>
<content type='text'>
(cherry picked from commit 95335dd3c19e0ade161bb4dc8462fc3d045ce4f8)
</content>
</entry>
<entry>
<title>rtld-elf: support either byte-order of hints file</title>
<updated>2024-03-29T06:43:52Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2024-02-26T22:18:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f61d786c291dc12d9b3a61b1d80475badc4ee758'/>
<id>urn:sha1:f61d786c291dc12d9b3a61b1d80475badc4ee758</id>
<content type='text'>
Accept either little-endian or big-endian representation of the ELF
hints magic number in the header of a hints file and convert the
parameters to the native byte-order of the repsective system.

This is a pre-requisite for a planned change to always write the byte
order in little-endian format on all architectures. The only relvant
architecture that uses big-endian data is powerpc64, and it is not
likely that new architectures will choose that representation of data
in memory.

When all supported architectures use little-endian data in the hints
file, the byte swap logic can be enabled for big-endian CPUs at
compile time. Up to that point, there is a very small run-time penalty
that is paid on all systems to check the byte-order of the hints file
and to provide the option to byte-swap the parameters read from the
hints file header.

This commit contains the changes from review D44080 (which had been
split off from this patch for easier review),

Reviewed by:	kib
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D44053

(cherry picked from commit 7b77d37a561b47db093a2528b8032dbfe5791698)

rtld-elf: add some debug print statements

The byte-order independent code has been reported to fail on powerpc64.
Add some more debug statements to help identify the parametrs used and
to verify the correct operation of the byte-swap macros used..

(cherry picked from commit 173953182af060dcab43990e179ee91e9f2d1e54)

rtld: fix check for endianess of elf hints file

Don't check if the elf hints file is in host byte order, but check
if it is in little endian by looking at the magic number.
This fixes rtld on big endian platforms.

Reviewed by:	se, kib (prior version of the patch)
Fixes:		7b77d37a561b ("rtld-elf: support either byte-order of hints")
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D44472

(cherry picked from commit da2d6e2815d7694e3ccbd561508074c547b02dd6)

rtld: reduce debug messages after fix on big-endian hosts

Remove a debug message that had been added to support the debugging
of a mis-detection of the hint files endianness on powerpc64.

MFC after:	3 days

(cherry picked from commit c44bf7d2e9d2292867f2e23f291266af26762354)
</content>
</entry>
<entry>
<title>rtld: add some dlopen tests</title>
<updated>2024-03-18T03:34:05Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2024-02-13T15:38:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7e9323311117758e7b17386445afd9a7e98bf290'/>
<id>urn:sha1:7e9323311117758e7b17386445afd9a7e98bf290</id>
<content type='text'>
dlopen_basic just tests that libthr.so can be dlopen()ed, which will
just serve as a sanity check that "libthr.so" is a thing that can be
dlopened in case we get a weird failure in dlopen_recursing.

dlopen_recursing tests a regression reported after the libsys split,
where some dlopen() may cause infinite recursion and a resulting crash.
This case is inspired by bdrewery's description of what seemed to be
causing his issue.

The corresponding fix landed in commit
968a18975ad ("rtld: ignore load_filtees() calls if we already [...]")

Reviewed by:	kib

(cherry picked from commit c5796f1572c82b88e8b6a2810c92f30e5ac3e118)
</content>
</entry>
</feed>
