From d0fb7e49cceaa8dec6d91fae34e426352fd9979b Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 19 Jan 2014 08:25:41 +0000 Subject: ARM ELF: ensure that the tag types are corrected Ensure that the tag types are reflected on a replacement. This is particularly important for the compatibility tag which has multiple representations where the last definition wins. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199577 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/ARM/directive-eabi_attribute-overwrite.s | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/MC/ARM/directive-eabi_attribute-overwrite.s (limited to 'test') diff --git a/test/MC/ARM/directive-eabi_attribute-overwrite.s b/test/MC/ARM/directive-eabi_attribute-overwrite.s new file mode 100644 index 0000000000..3e257dbe9d --- /dev/null +++ b/test/MC/ARM/directive-eabi_attribute-overwrite.s @@ -0,0 +1,18 @@ +@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-readobj -s -sd \ +@ RUN: | FileCheck %s + + .syntax unified + .thumb + + .eabi_attribute Tag_compatibility, 1 + .eabi_attribute Tag_compatibility, 1, "aeabi" + +@ CHECK: Section { +@ CHECK: Name: .ARM.attributes +@ CHECK: Type: SHT_ARM_ATTRIBUTES +@ CHECK: SectionData ( +@ CHECK: 0000: 41170000 00616561 62690001 0D000000 +@ CHECK: 0010: 20014145 41424900 +@ CHECK: ) +@ CHECK: } + -- cgit v1.2.3