From 4b535030189e7b6c5f26d0881f883665b54f124c Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Mon, 5 Jul 2021 16:37:19 +0200 Subject: PATCH [2/4] arm: Add Tag_BTI_extension build attribute bfd/ 2021-07-06 Andrea Corallo * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add 'Tag_BTI_extension' case. binutils/ 2021-07-06 Andrea Corallo * readelf.c (arm_attr_tag_PAC_extension): Declare. (arm_attr_public_tags): Add 'PAC_extension' lookup. elfcpp/ 2021-07-06 Andrea Corallo * arm.h: Define 'Tag_BTI_extension' enum. gas/ 2021-07-06 Andrea Corallo * config/tc-arm.c (arm_convert_symbolic_attribute): Add 'Tag_BTI_extension' to the attribute_table. include/ 2021-07-06 Andrea Corallo * elf/arm.h (elf_arm_reloc_type): Add 'Tag_BTI_extension'. --- binutils/readelf.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'binutils') diff --git a/binutils/readelf.c b/binutils/readelf.c index d38a07f..ce76076 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -16144,6 +16144,11 @@ static const char * arm_attr_tag_PAC_extension[] = "PAC/AUT instructions permitted in the NOP space", "PAC/AUT instructions permitted in the NOP and in the non-NOP space"}; +static const char * arm_attr_tag_BTI_extension[] = + {"BTI instructions not permitted", + "BTI instructions permitted in the NOP space", + "BTI instructions permitted in the NOP and in the non-NOP space"}; + #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[] = @@ -16185,6 +16190,7 @@ static arm_attr_public_tag arm_attr_public_tags[] = LOOKUP(46, DSP_extension), LOOKUP(48, MVE_arch), LOOKUP(50, PAC_extension), + LOOKUP(52, BTI_extension), {64, "nodefaults", 0, NULL}, {65, "also_compatible_with", 0, NULL}, LOOKUP(66, T2EE_use), -- cgit v1.1