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
This commit is contained in:
parent
7107bed0f0
commit
bcf9fc28f6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300374
@ -46,6 +46,11 @@
|
|||||||
|
|
||||||
ELFTC_VCSID("$Id: brandelf.c 3440 2016-04-07 14:51:47Z emaste $");
|
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 int elftype(const char *);
|
||||||
static const char *iselftype(int);
|
static const char *iselftype(int);
|
||||||
static void printelftypes(void);
|
static void printelftypes(void);
|
||||||
|
@ -41,6 +41,11 @@
|
|||||||
|
|
||||||
ELFTC_VCSID("$Id: main.c 3446 2016-05-03 01:31:17Z emaste $");
|
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
|
enum options
|
||||||
{
|
{
|
||||||
ECP_ADD_GNU_DEBUGLINK,
|
ECP_ADD_GNU_DEBUGLINK,
|
||||||
|
@ -50,6 +50,9 @@
|
|||||||
ELFTC_VCSID("$Id: readelf.c 3469 2016-05-15 23:16:09Z emaste $");
|
ELFTC_VCSID("$Id: readelf.c 3469 2016-05-15 23:16:09Z emaste $");
|
||||||
|
|
||||||
/* Backwards compatability for older FreeBSD releases. */
|
/* Backwards compatability for older FreeBSD releases. */
|
||||||
|
#ifndef ELFOSABI_CLOUDABI
|
||||||
|
#define ELFOSABI_CLOUDABI 17
|
||||||
|
#endif
|
||||||
#ifndef EM_IAMCU
|
#ifndef EM_IAMCU
|
||||||
#define EM_IAMCU 6
|
#define EM_IAMCU 6
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user