From 1e804b7425b79e2ec2e24e35599849ac159c0514 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 1 Oct 2004 12:59:35 +0000 Subject: [PATCH] The patch below adds binutils support for the SHT_ARM_EXIDX, as defined by the ARM EABI. --- include/elf/ChangeLog | 7 +++++++ include/elf/arm.h | 11 ++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index 6b0cf0d4e..300181f49 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,10 @@ +2004-10-01 Paul Brook + + * arm.h (SHT_ARM_EXIDX): Define. + (ELF_STRING_ARM_unwind, ELF_STRING_ARM_unwind, + ELF_STRING_ARM_unwind_once, ELF_STRING_ARM_unwind_info_once): + Define. + 2004-08-25 Dmitry Diky * msp430.h: Add new relocs. diff --git a/include/elf/arm.h b/include/elf/arm.h index 05ba3464f..7b8030823 100644 --- a/include/elf/arm.h +++ b/include/elf/arm.h @@ -64,6 +64,9 @@ #define STT_ARM_TFUNC STT_LOPROC /* A Thumb function. */ #define STT_ARM_16BIT STT_HIPROC /* A Thumb label. */ +/* Additional section types. */ +#define SHT_ARM_EXIDX 0x70000001 /* Section holds ARM unwind info. */ + /* ARM-specific values for sh_flags. */ #define SHF_ENTRYSECT 0x10000000 /* Section contains an entry point. */ #define SHF_COMDEF 0x80000000 /* Section may be multiply defined in the input to a link step. */ @@ -157,5 +160,11 @@ END_RELOC_NUMBERS (R_ARM_max) /* The name of the note section used to identify arm variants. */ #define ARM_NOTE_SECTION ".note.gnu.arm.ident" - + +/* Special section names. */ +#define ELF_STRING_ARM_unwind ".ARM.exidx" +#define ELF_STRING_ARM_unwind_info ".ARM.extab" +#define ELF_STRING_ARM_unwind_once ".gnu.linkonce.armexidx." +#define ELF_STRING_ARM_unwind_info_once ".gnu.linkonce.armextab." + #endif /* _ELF_ARM_H */