Date: Sat, 21 May 2016 15:38:40 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300374 - in head/contrib/elftoolchain: brandelf elfcopy readelf Message-ID: <201605211538.u4LFceJ8089194@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Sat May 21 15:38:40 2016 New Revision: 300374 URL: https://svnweb.freebsd.org/changeset/base/300374 Log: 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 Modified: head/contrib/elftoolchain/brandelf/brandelf.c head/contrib/elftoolchain/elfcopy/main.c head/contrib/elftoolchain/readelf/readelf.c Modified: head/contrib/elftoolchain/brandelf/brandelf.c ============================================================================== --- head/contrib/elftoolchain/brandelf/brandelf.c Sat May 21 15:15:11 2016 (r300373) +++ head/contrib/elftoolchain/brandelf/brandelf.c Sat May 21 15:38:40 2016 (r300374) @@ -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); Modified: head/contrib/elftoolchain/elfcopy/main.c ============================================================================== --- head/contrib/elftoolchain/elfcopy/main.c Sat May 21 15:15:11 2016 (r300373) +++ head/contrib/elftoolchain/elfcopy/main.c Sat May 21 15:38:40 2016 (r300374) @@ -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, Modified: head/contrib/elftoolchain/readelf/readelf.c ============================================================================== --- head/contrib/elftoolchain/readelf/readelf.c Sat May 21 15:15:11 2016 (r300373) +++ head/contrib/elftoolchain/readelf/readelf.c Sat May 21 15:38:40 2016 (r300374) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605211538.u4LFceJ8089194>