diff options
author | Christophe Lyon <christophe.lyon@st.com> | 2018-03-20 10:54:50 +0100 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2018-04-25 20:49:57 +0000 |
commit | 18a203380502fb3ee75633fd464faa3c83cec710 (patch) | |
tree | 38db2664e147980721410e17587c5ec056dba4d7 /include | |
parent | 617a5ada88c7d4b6aae201ad5b295f3d2ef07c10 (diff) | |
download | binutils-18a203380502fb3ee75633fd464faa3c83cec710.zip binutils-18a203380502fb3ee75633fd464faa3c83cec710.tar.gz binutils-18a203380502fb3ee75633fd464faa3c83cec710.tar.bz2 |
[ARM] Add FDPIC OSABI flag support.
ELF files targetting ARM FDPIC use the ELFOSABI_ARM_FDPIC flag.
Set it appropriately in file generators (eg. gas), and handle it in
readers (eg. readelf).
2018-04-25 Christophe Lyon <christophe.lyon@st.com>
Mickaël Guêné <mickael.guene@st.com>
bfd/
* elf32-arm.c (elf32_arm_print_private_bfd_data): Support
EF_ARM_PIC and ELFOSABI_ARM_FDPIC.
(elf32_arm_post_process_headers): Support ELFOSABI_ARM_FDPIC.
(ELF_OSABI): Define to ELFOSABI_ARM_FDPIC.
binutils/
* readelf.c (decode_ARM_machine_flags): Support EF_ARM_PIC.
(get_osabi_name): Support ELFOSABI_ARM_FDPIC.
gas/
* config/tc-arm.c (arm_fdpic): New.
(elf32_arm_target_format): Support FDPIC.
(OPTION_FDPIC): New.
(md_longopts): Support FDPIC.
(md_parse_option): Likewise.
(md_show_usage): Likewise.
include/
* elf/arm.h (EF_ARM_FDPIC): New.
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/elf/common.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 940136e..d159a25 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2018-04-25 Christophe Lyon <christophe.lyon@st.com> + Mickaël Guêné <mickael.guene@st.com> + + * elf/arm.h (EF_ARM_FDPIC): New. + 2018-04-18 Alan Modra <amodra@gmail.com> * coff/mipspe.h: Delete. diff --git a/include/elf/common.h b/include/elf/common.h index f435472..469fe5a 100644 --- a/include/elf/common.h +++ b/include/elf/common.h @@ -78,6 +78,7 @@ #define ELFOSABI_C6000_ELFABI 64 /* Bare-metal TMS320C6000 */ #define ELFOSABI_C6000_LINUX 65 /* Linux TMS320C6000 */ +#define ELFOSABI_ARM_FDPIC 65 /* ARM FDPIC */ #define ELFOSABI_ARM 97 /* ARM */ #define ELFOSABI_STANDALONE 255 /* Standalone (embedded) application */ |