diff options
author | emaste <emaste@FreeBSD.org> | 2016-05-21 15:38:40 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2016-05-21 15:38:40 +0000 |
commit | 70ecb891fe97435b1afb41582c56041ca554388b (patch) | |
tree | 9704d475aef7c7093033c2076e434e6ae0275702 /contrib/elftoolchain | |
parent | 0dbe97e8b21e8729278d20473e77e0cbf37e271c (diff) | |
download | FreeBSD-src-70ecb891fe97435b1afb41582c56041ca554388b.zip FreeBSD-src-70ecb891fe97435b1afb41582c56041ca554388b.tar.gz |
elftoolchain: backwards compatability for ELFOSABI_CLOUDABI definition
It is not provided by sys/elf_common.h on older releases or -current
before March 2015.
Reported by: Jenkins
Diffstat (limited to 'contrib/elftoolchain')
-rw-r--r-- | contrib/elftoolchain/brandelf/brandelf.c | 5 | ||||
-rw-r--r-- | contrib/elftoolchain/elfcopy/main.c | 5 | ||||
-rw-r--r-- | contrib/elftoolchain/readelf/readelf.c | 3 |
3 files changed, 13 insertions, 0 deletions
diff --git a/contrib/elftoolchain/brandelf/brandelf.c b/contrib/elftoolchain/brandelf/brandelf.c index 7cc93f0..d41b926 100644 --- a/contrib/elftoolchain/brandelf/brandelf.c +++ b/contrib/elftoolchain/brandelf/brandelf.c @@ -46,6 +46,11 @@ ELFTC_VCSID("$Id: brandelf.c 3440 2016-04-07 14:51:47Z emaste $"); +/* Backwards compatability for older FreeBSD releases. */ +#ifndef ELFOSABI_CLOUDABI +#define ELFOSABI_CLOUDABI 17 +#endif + static int elftype(const char *); static const char *iselftype(int); static void printelftypes(void); diff --git a/contrib/elftoolchain/elfcopy/main.c b/contrib/elftoolchain/elfcopy/main.c index ebc0c92..89ffab2 100644 --- a/contrib/elftoolchain/elfcopy/main.c +++ b/contrib/elftoolchain/elfcopy/main.c @@ -41,6 +41,11 @@ ELFTC_VCSID("$Id: main.c 3446 2016-05-03 01:31:17Z emaste $"); +/* Backwards compatability for older FreeBSD releases. */ +#ifndef ELFOSABI_CLOUDABI +#define ELFOSABI_CLOUDABI 17 +#endif + enum options { ECP_ADD_GNU_DEBUGLINK, diff --git a/contrib/elftoolchain/readelf/readelf.c b/contrib/elftoolchain/readelf/readelf.c index ba59275..fcfc75d 100644 --- a/contrib/elftoolchain/readelf/readelf.c +++ b/contrib/elftoolchain/readelf/readelf.c @@ -50,6 +50,9 @@ 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 |