diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2013-05-26 20:58:06 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2013-08-29 12:22:17 +0200 |
commit | c54290cf086940e3859b236d0fb880bacab2288b (patch) | |
tree | 66a48e6382f61753f8b35788689c105bd79ccc28 /ports/sysdeps/unix | |
parent | 0007fc9bdd1d9efcd52d07837f2cd085b5a8f58b (diff) | |
download | glibc-c54290cf086940e3859b236d0fb880bacab2288b.tar.gz glibc-c54290cf086940e3859b236d0fb880bacab2288b.tar.xz glibc-c54290cf086940e3859b236d0fb880bacab2288b.zip |
Use ELFOSABI_GNU instead of ELFOSABI_LINUX.
Diffstat (limited to 'ports/sysdeps/unix')
-rw-r--r-- | ports/sysdeps/unix/sysv/linux/arm/ldsodefs.h | 6 | ||||
-rw-r--r-- | ports/sysdeps/unix/sysv/linux/mips/ldsodefs.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ports/sysdeps/unix/sysv/linux/arm/ldsodefs.h b/ports/sysdeps/unix/sysv/linux/arm/ldsodefs.h index 50a8bb7644..3821bf33b3 100644 --- a/ports/sysdeps/unix/sysv/linux/arm/ldsodefs.h +++ b/ports/sysdeps/unix/sysv/linux/arm/ldsodefs.h @@ -44,8 +44,8 @@ || memcmp (hdr, expected3, size) == 0) \ && VALID_FLOAT_ABI (ehdr->e_flags)) #define VALID_ELF_OSABI(osabi) (osabi == ELFOSABI_SYSV \ - || osabi == EXTRA_OSABI \ - || osabi == ELFOSABI_LINUX) + || osabi == ELFOSABI_GNU \ + || osabi == EXTRA_OSABI) #define MORE_ELF_HEADER_DATA \ static const unsigned char expected2[EI_PAD] = \ { \ @@ -56,7 +56,7 @@ [EI_CLASS] = ELFW(CLASS), \ [EI_DATA] = byteorder, \ [EI_VERSION] = EV_CURRENT, \ - [EI_OSABI] = ELFOSABI_LINUX \ + [EI_OSABI] = ELFOSABI_GNU \ }; \ static const unsigned char expected3[EI_PAD] = \ { \ diff --git a/ports/sysdeps/unix/sysv/linux/mips/ldsodefs.h b/ports/sysdeps/unix/sysv/linux/mips/ldsodefs.h index eb45f7229a..76c38c8d29 100644 --- a/ports/sysdeps/unix/sysv/linux/mips/ldsodefs.h +++ b/ports/sysdeps/unix/sysv/linux/mips/ldsodefs.h @@ -30,11 +30,11 @@ extern void _dl_static_init (struct link_map *map); #define DL_STATIC_INIT(map) _dl_static_init (map) /* Allow ABIVERSION == 1, meaning PLTs and copy relocations are - required, with ELFOSABI_SYSV. */ + required, with ELFOSABI_SYSV, and ELFOSABI_GNU. */ #undef VALID_ELF_ABIVERSION #define VALID_ELF_ABIVERSION(osabi,ver) \ (ver == 0 \ || (osabi == ELFOSABI_SYSV && ver < 2) \ - || (osabi == ELFOSABI_LINUX && ver < LIBC_ABI_MAX)) + || (osabi == ELFOSABI_GNU && ver < LIBC_ABI_MAX)) #endif /* ldsodefs.h */ |