cfac17ad3f09ef2bf18c3bc02026a5e934717c15
[openwrt/staging/pepe2k.git] / package / libs / elfutils / patches / 007-fix-missing-typedef.patch
1 --- a/libelf/libelf.h
2 +++ b/libelf/libelf.h
3 @@ -73,15 +73,15 @@
4 /* So RELR defines/typedefs can be used even with an old system elf.h. */
5 #define SHT_RELR 19 /* RELR relative relocations */
6
7 - /* RELR relocation table entry */
8 - typedef Elf32_Word Elf32_Relr;
9 - typedef Elf64_Xword Elf64_Relr;
10 -
11 #define DT_RELRSZ 35 /* Total size of RELR relative relocations */
12 #define DT_RELR 36 /* Address of RELR relative relocations */
13 #define DT_RELRENT 37 /* Size of one RELR relative relocaction */
14 #endif
15
16 +/* RELR relocation table entry */
17 +typedef Elf32_Word Elf32_Relr;
18 +typedef Elf64_Xword Elf64_Relr;
19 +
20 #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)
21 # define __nonnull_attribute__(...) __attribute__ ((__nonnull__ (__VA_ARGS__)))
22 # define __deprecated_attribute__ __attribute__ ((__deprecated__))