mirror of git://git.musl-libc.org/musl
fix build regression on mips64 due to endian.h removal
commit4d3a162d00
overlooked that the mips64 reloc.h dependent on endian.h not only for setting the ABI ldso name to match the byte order, but also for use of the byte swapping macros. they are needed to override R_TYPE, R_SYM, and R_INFO, to compensate for a mips "quirk" of always using big endian order for symbol references in relocations. part of that commit canot be reverted because the original code was wrong: it's invalid to define _GNU_SOURCE or any feature test macro in reloc.h, or anywhere except at the top of a source file. however, thanks to commit316730cdc7
, the feature test macro is no longer needed to access the endian-swapping macros, so simply bringing back the #include directive suffices.
This commit is contained in:
parent
129118db4d
commit
90251cf73d
|
@ -27,6 +27,8 @@
|
||||||
#define REL_DTPOFF R_MIPS_TLS_DTPREL64
|
#define REL_DTPOFF R_MIPS_TLS_DTPREL64
|
||||||
#define REL_TPOFF R_MIPS_TLS_TPREL64
|
#define REL_TPOFF R_MIPS_TLS_TPREL64
|
||||||
|
|
||||||
|
#include <endian.h>
|
||||||
|
|
||||||
#undef R_TYPE
|
#undef R_TYPE
|
||||||
#undef R_SYM
|
#undef R_SYM
|
||||||
#undef R_INFO
|
#undef R_INFO
|
||||||
|
|
Loading…
Reference in New Issue