freebsd-src/libexec
Stefan Eßer 7b77d37a56 rtld-elf: support either byte-order of hints file
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
2024-02-26 23:18:12 +01:00
..
atf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
atrun Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
blacklistd-helper Track upstream project rename in contrib/blocklistd 2023-11-03 16:53:04 -04:00
bootpd bootpd(8): Fix a typo in a source code comment 2024-01-22 21:46:31 +01:00
comsat Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
dma Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
fingerd Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
flua flua: add fbsd module 2023-09-27 16:00:00 +02:00
ftpd libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
getty libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
hyperv Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
kgdb crashinfo: Print stack traces for all on-CPU threads 2024-01-15 16:36:40 -05:00
mail.local libexec: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
makewhatis.local Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
mknetid libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
phttpget libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
pppoed Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rbootd libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
rc Revert "rc.d/mountlate: discard output from nextboot" 2024-02-20 21:04:15 -09:00
revnetgroup Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
rpc.rquotad libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
rpc.rstatd libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
rpc.rusersd Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
rpc.rwalld Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpc.sprayd Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
rtld-elf rtld-elf: support either byte-order of hints file 2024-02-26 23:18:12 +01:00
rtld-elf32 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
save-entropy save-entropy: Add manual page 2023-09-18 13:33:59 +02:00
smrsh libexec: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
talkd libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
tcpd Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tftp-proxy Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tftpd libexec: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
ulog-helper Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ypxfr Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
Makefile crashinfo: Print stack traces for all on-CPU threads 2024-01-15 16:36:40 -05:00
Makefile.inc libexec: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00