remove use of endian.h from arch reloc.h headers, clean up
authorRich Felker <dalias@aerifal.cx>
Thu, 17 Oct 2019 20:06:12 +0000 (16:06 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 17 Oct 2019 20:06:12 +0000 (16:06 -0400)
building on commit 97d35a552ec5b6ddf7923dd2f9a8eb973526acea,
__BYTE_ORDER is now available wherever alltypes.h is included. since
reloc.h is only used from src/internal/dynlink.h, it can be assumed
that __BYTE_ORDER is exposed. reloc.h is not permitted to be included
in other contexts, and generally, like most arch headers, lacks
inclusion guards that would allow such usage. the mips64 version
mistakenly included such guards; they are removed for consistency.

arch/aarch64/reloc.h
arch/arm/reloc.h
arch/microblaze/reloc.h
arch/mips/reloc.h
arch/mips64/reloc.h
arch/mipsn32/reloc.h
arch/powerpc64/reloc.h
arch/s390x/reloc.h
arch/sh/reloc.h

index 40cf0b2..b1b68c7 100644 (file)
@@ -1,5 +1,3 @@
-#include <endian.h>
-
 #if __BYTE_ORDER == __BIG_ENDIAN
 #define ENDIAN_SUFFIX "_be"
 #else
index 2c2e7f5..d091d2a 100644 (file)
@@ -1,5 +1,3 @@
-#include <endian.h>
-
 #if __BYTE_ORDER == __BIG_ENDIAN
 #define ENDIAN_SUFFIX "eb"
 #else
index 0a030c7..6302c6e 100644 (file)
@@ -1,5 +1,3 @@
-#include <endian.h>
-
 #if __BYTE_ORDER == __LITTLE_ENDIAN
 #define ENDIAN_SUFFIX "el"
 #else
index b3d59a4..88d2363 100644 (file)
@@ -1,5 +1,3 @@
-#include <endian.h>
-
 #if __mips_isa_rev >= 6
 #define ISA_SUFFIX "r6"
 #else
index bbd9bd9..7e61e22 100644 (file)
@@ -1,9 +1,3 @@
-#ifndef __RELOC_H__
-#define __RELOC_H__
-
-#define _GNU_SOURCE
-#include <endian.h>
-
 #if __mips_isa_rev >= 6
 #define ISA_SUFFIX "r6"
 #else
@@ -62,5 +56,3 @@
        "       daddu %0, %0, $ra \n" \
        ".set pop \n" \
        : "=r"(*(fp)) : : "memory", "ra" )
-
-#endif
index 728aaab..47c6e59 100644 (file)
@@ -1,5 +1,3 @@
-#include <endian.h>
-
 #if __mips_isa_rev >= 6
 #define ISA_SUFFIX "r6"
 #else
index 5bdaeed..2f1bba0 100644 (file)
@@ -1,5 +1,3 @@
-#include <endian.h>
-
 #if __BYTE_ORDER == __LITTLE_ENDIAN
 #define ENDIAN_SUFFIX "le"
 #else
index a238dc6..6e5c1fb 100644 (file)
@@ -1,5 +1,3 @@
-#include <endian.h>
-
 #define LDSO_ARCH "s390x"
 
 #define REL_SYMBOLIC    R_390_64
index a1f16cb..17b1a9a 100644 (file)
@@ -1,5 +1,3 @@
-#include <endian.h>
-
 #if __BYTE_ORDER == __BIG_ENDIAN
 #define ENDIAN_SUFFIX "eb"
 #else