aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAndrea Corallo <andrea.corallo@arm.com>2021-07-05 17:14:47 +0200
committerAndrea Corallo <andrea.corallo@arm.com>2021-08-17 14:49:42 +0200
commitb81ee92f0349038a4575bf2e1f5321ac63a6ac48 (patch)
treea81bc800a357d54cedf279617cc70dfcee52e168 /binutils
parent4b535030189e7b6c5f26d0881f883665b54f124c (diff)
downloadbinutils-b81ee92f0349038a4575bf2e1f5321ac63a6ac48.zip
binutils-b81ee92f0349038a4575bf2e1f5321ac63a6ac48.tar.gz
binutils-b81ee92f0349038a4575bf2e1f5321ac63a6ac48.tar.bz2
PATCH [3/4] arm: Add Tag_BTI_use build attribute
bfd/ 2021-07-06 Andrea Corallo <andrea.corallo@arm.com> * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add 'Tag_BTI_use' case. binutils/ 2021-07-06 Andrea Corallo <andrea.corallo@arm.com> * readelf.c (arm_attr_tag_PAC_extension): Declare. (arm_attr_public_tags): Add 'PAC_extension' lookup. elfcpp/ 2021-07-06 Andrea Corallo <andrea.corallo@arm.com> * arm.h: Define 'Tag_BTI_use' enum. gas/ 2021-07-06 Andrea Corallo <andrea.corallo@arm.com> * config/tc-arm.c (arm_convert_symbolic_attribute): Add 'Tag_BTI_use' to the attribute_table. include/ 2021-07-06 Andrea Corallo <andrea.corallo@arm.com> * elf/arm.h (elf_arm_reloc_type): Add 'Tag_BTI_use'.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/readelf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index ce76076..5893be3 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -16149,6 +16149,10 @@ static const char * arm_attr_tag_BTI_extension[] =
"BTI instructions permitted in the NOP space",
"BTI instructions permitted in the NOP and in the non-NOP space"};
+static const char * arm_attr_tag_BTI_use[] =
+ {"Compiled without branch target enforcement",
+ "Compiled with branch target enforcement"};
+
#define LOOKUP(id, name) \
{id, #name, 0x80 | ARRAY_SIZE(arm_attr_tag_##name), arm_attr_tag_##name}
static arm_attr_public_tag arm_attr_public_tags[] =
@@ -16191,6 +16195,7 @@ static arm_attr_public_tag arm_attr_public_tags[] =
LOOKUP(48, MVE_arch),
LOOKUP(50, PAC_extension),
LOOKUP(52, BTI_extension),
+ LOOKUP(74, BTI_use),
{64, "nodefaults", 0, NULL},
{65, "also_compatible_with", 0, NULL},
LOOKUP(66, T2EE_use),