From bf303fc30715ba02003d3b4176fa79d6534556e2 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Seo Date: Wed, 18 Nov 2020 17:22:25 -0300 Subject: [PATCH] elf: add Arm Morello relocations to elf.h --- elf/elf.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/elf/elf.h b/elf/elf.h index 02a1b3f52fd..f61eced554a 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -2915,6 +2915,27 @@ enum /* AArch64 specific values for the st_other field. */ #define STO_AARCH64_VARIANT_PCS 0x80 +/* Morello relocs. */ +#define R_MORELLO_TSTBR14 57344 +#define R_MORELLO_CONDBR19 57345 +#define R_MORELLO_JUMP26 57346 +#define R_MORELLO_CALL26 57347 +#define R_MORELLO_LD_PREL_LO17 57348 +#define R_MORELLO_ADR_PREL_PG_HI20 57349 +#define R_MORELLO_ADR_PREL_PG_HI20_NC 57350 +#define R_MORELLO_ADR_GOT_PAGE 57351 +#define R_MORELLO_LD128_GOT_LO12_NC 57352 +#define R_MORELLO_TLSDESC_ADR_PAGE20 57600 +#define R_MORELLO_TLSDESC_LD128_LO12 57601 +#define R_MORELLO_TLSDESC_CALL 57602 +#define R_MORELLO_CAPINIT 59392 +#define R_MORELLO_GLOB_DAT 59393 +#define R_MORELLO_JUMP_SLOT 59394 +#define R_MORELLO_RELATIVE 59395 +#define R_MORELLO_IRELATIVE 59396 +#define R_MORELLO_TLSDESC 59397 +#define R_MORELLO_TPREL128 59398 + /* ARM relocs. */ #define R_ARM_NONE 0 /* No reloc */ -- 2.47.2