remove use of endian.h from arch reloc.h headers, clean up

building on commit 97d35a552e,
__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.
This commit is contained in:
Rich Felker 2019-10-17 16:06:12 -04:00
parent 71d23fbeac
commit 4d3a162d00
9 changed files with 0 additions and 24 deletions

View File

@ -1,5 +1,3 @@
#include <endian.h>
#if __BYTE_ORDER == __BIG_ENDIAN
#define ENDIAN_SUFFIX "_be"
#else

View File

@ -1,5 +1,3 @@
#include <endian.h>
#if __BYTE_ORDER == __BIG_ENDIAN
#define ENDIAN_SUFFIX "eb"
#else

View File

@ -1,5 +1,3 @@
#include <endian.h>
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define ENDIAN_SUFFIX "el"
#else

View File

@ -1,5 +1,3 @@
#include <endian.h>
#if __mips_isa_rev >= 6
#define ISA_SUFFIX "r6"
#else

View 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

View File

@ -1,5 +1,3 @@
#include <endian.h>
#if __mips_isa_rev >= 6
#define ISA_SUFFIX "r6"
#else

View File

@ -1,5 +1,3 @@
#include <endian.h>
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define ENDIAN_SUFFIX "le"
#else

View File

@ -1,5 +1,3 @@
#include <endian.h>
#define LDSO_ARCH "s390x"
#define REL_SYMBOLIC R_390_64

View File

@ -1,5 +1,3 @@
#include <endian.h>
#if __BYTE_ORDER == __BIG_ENDIAN
#define ENDIAN_SUFFIX "eb"
#else