mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-22 03:04:34 +01:00
ldconfig: use little-endian hints file on all architectures
Remove the test for building on a big-endian architecture, which preserved the previous default of creating the ELF hints file in native byte-order of the respective architecture. Support for little-endian hints files has been added to the run-time linker and the pkg command. This is a step towards architecture independent little-endian hints files, but support for big-endian hints files shall only be removed from the run-time linker (and ldconfig and pkg) when the last release that defaulted to hints files in host-byte has been declared EOL. Reviewed by: kib Tested by: tuexen MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D44734
This commit is contained in:
parent
6b13e4cb3d
commit
f221df6597
@ -246,10 +246,10 @@ update_elf_hints(const char *hintsfile, int argc, char **argv, bool merge,
|
||||
int i;
|
||||
|
||||
/*
|
||||
* Remove "be32toh(1) == 1" from this condition to create
|
||||
* little-endian hints files on all architectures by default.
|
||||
* Create little-endian hints files on all architectures unless
|
||||
* ldconfig has been invoked with the -B option.
|
||||
*/
|
||||
is_be = be32toh(1) == 1 || force_be;
|
||||
is_be = force_be;
|
||||
if (merge)
|
||||
read_elf_hints(hintsfile, false, force_be);
|
||||
for (i = 0; i < argc; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user