diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2016-06-05 23:05:14 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2016-06-05 23:05:14 +0000 |
commit | 3456e2d15bd813b18a8e16b7b309dd6ca35b8f5b (patch) | |
tree | 3a83a4cae9bd6509e05ca1cc1b2870ee113f848f /contrib/elftoolchain/readelf/readelf.c | |
parent | 65190668661ad93b1ab4bffe3013104a8a2baa6f (diff) | |
download | FreeBSD-src-3456e2d15bd813b18a8e16b7b309dd6ca35b8f5b.zip FreeBSD-src-3456e2d15bd813b18a8e16b7b309dd6ca35b8f5b.tar.gz |
Use the in-tree sys/elf_common.h to build libelftc.
This fixes build failures on older releases that lack various
definitions such as EM_AARCH64 (which was unfixed before this).
Revert all of the recent compatibility changes that worked around this
problem.
This uses the same method of using the in-tree header as lib/libelf,
lib/libdwarf and usr.bin/readelf.
Reviewed by: emaste
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D6734
Diffstat (limited to 'contrib/elftoolchain/readelf/readelf.c')
-rw-r--r-- | contrib/elftoolchain/readelf/readelf.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/contrib/elftoolchain/readelf/readelf.c b/contrib/elftoolchain/readelf/readelf.c index fcfc75d..79cb8b7 100644 --- a/contrib/elftoolchain/readelf/readelf.c +++ b/contrib/elftoolchain/readelf/readelf.c @@ -50,15 +50,6 @@ ELFTC_VCSID("$Id: readelf.c 3469 2016-05-15 23:16:09Z emaste $"); /* Backwards compatability for older FreeBSD releases. */ -#ifndef ELFOSABI_CLOUDABI -#define ELFOSABI_CLOUDABI 17 -#endif -#ifndef EM_IAMCU -#define EM_IAMCU 6 -#endif -#ifndef EM_RISCV -#define EM_RISCV 243 -#endif #ifndef STB_GNU_UNIQUE #define STB_GNU_UNIQUE 10 #endif |