From: Alan Modra Date: Fri, 29 Oct 2021 09:14:40 +0000 (+1030) Subject: Re: arm: add unwinder encoding support for PACBTI X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd6b67bec88e5517f1840b0df9cef5694d74104e;p=binutils-gdb.git Re: arm: add unwinder encoding support for PACBTI Move the gas testsuite files to where they belong. --- diff --git a/gas/testsuite/gas/arm/unwind-pacbti-m-readelf.d b/gas/testsuite/gas/arm/unwind-pacbti-m-readelf.d new file mode 100644 index 00000000000..ba1d76dd18f --- /dev/null +++ b/gas/testsuite/gas/arm/unwind-pacbti-m-readelf.d @@ -0,0 +1,16 @@ +#readelf: -u +#source: unwind-pacbti-m.s +#name: Unwind table information for Armv8.1-M.Mainline PACBTI extension +# This test is only valid on ELF based ports. +#notarget: *-*-pe *-*-wince +# VxWorks needs a special variant of this file. +#skip: *-*-vxworks* + +Unwind section '.ARM.exidx' at offset 0x40 contains 1 entry: + +0x0 : 0x80b4a8b0 + Compact model index: 0 + 0xb4 pop {ra_auth_code} + 0xa8 pop {r4, r14} + 0xb0 finish + diff --git a/gas/testsuite/gas/arm/unwind-pacbti-m.d b/gas/testsuite/gas/arm/unwind-pacbti-m.d new file mode 100644 index 00000000000..584b12037b3 --- /dev/null +++ b/gas/testsuite/gas/arm/unwind-pacbti-m.d @@ -0,0 +1,23 @@ +#objdump: -sr +#name: Unwind information for Armv8.1-M.Mainline PACBTI extension +# This test is only valid on ELF based ports. +#notarget: *-*-pe *-*-wince +# VxWorks needs a special variant of this file. +#skip: *-*-vxworks* + +.*: file format.* + +RELOCATION RECORDS FOR \[.ARM.exidx\]: +OFFSET TYPE VALUE +00000000 R_ARM_PREL31 .text +00000000 R_ARM_NONE __aeabi_unwind_cpp_pr0 + + +Contents of section .text: + 0000 10b54df8 04cd5df8 04cb10bd .* +Contents of section .ARM.exidx: + 0000 00000000 b0a8b480 .* +Contents of section .ARM.attributes: + 0000 41290000 00616561 62690001 1f000000 .* + 0010 05382e31 2d4d2e4d 41494e00 0615074d .* + 0020 09033202 34024a01 4c01 .* diff --git a/gas/testsuite/gas/arm/unwind-pacbti-m.s b/gas/testsuite/gas/arm/unwind-pacbti-m.s new file mode 100644 index 00000000000..5a6ea2eec2b --- /dev/null +++ b/gas/testsuite/gas/arm/unwind-pacbti-m.s @@ -0,0 +1,20 @@ + + .arch armv8.1-m.main + .arch_extension pacbti + .eabi_attribute 50, 2 + .eabi_attribute 52, 2 + .eabi_attribute 74, 1 + .eabi_attribute 76, 1 + .text + .syntax unified + .thumb + .thumb_func +foo: + .fnstart + push {r4, lr} + .save {r4, lr} + push {r12} + .save {ra_auth_code} + pop {r12} + pop {r4, pc} + .fnend diff --git a/unwind-pacbti-m-readelf.d b/unwind-pacbti-m-readelf.d deleted file mode 100644 index ba1d76dd18f..00000000000 --- a/unwind-pacbti-m-readelf.d +++ /dev/null @@ -1,16 +0,0 @@ -#readelf: -u -#source: unwind-pacbti-m.s -#name: Unwind table information for Armv8.1-M.Mainline PACBTI extension -# This test is only valid on ELF based ports. -#notarget: *-*-pe *-*-wince -# VxWorks needs a special variant of this file. -#skip: *-*-vxworks* - -Unwind section '.ARM.exidx' at offset 0x40 contains 1 entry: - -0x0 : 0x80b4a8b0 - Compact model index: 0 - 0xb4 pop {ra_auth_code} - 0xa8 pop {r4, r14} - 0xb0 finish - diff --git a/unwind-pacbti-m.d b/unwind-pacbti-m.d deleted file mode 100644 index 584b12037b3..00000000000 --- a/unwind-pacbti-m.d +++ /dev/null @@ -1,23 +0,0 @@ -#objdump: -sr -#name: Unwind information for Armv8.1-M.Mainline PACBTI extension -# This test is only valid on ELF based ports. -#notarget: *-*-pe *-*-wince -# VxWorks needs a special variant of this file. -#skip: *-*-vxworks* - -.*: file format.* - -RELOCATION RECORDS FOR \[.ARM.exidx\]: -OFFSET TYPE VALUE -00000000 R_ARM_PREL31 .text -00000000 R_ARM_NONE __aeabi_unwind_cpp_pr0 - - -Contents of section .text: - 0000 10b54df8 04cd5df8 04cb10bd .* -Contents of section .ARM.exidx: - 0000 00000000 b0a8b480 .* -Contents of section .ARM.attributes: - 0000 41290000 00616561 62690001 1f000000 .* - 0010 05382e31 2d4d2e4d 41494e00 0615074d .* - 0020 09033202 34024a01 4c01 .* diff --git a/unwind-pacbti-m.s b/unwind-pacbti-m.s deleted file mode 100644 index 5a6ea2eec2b..00000000000 --- a/unwind-pacbti-m.s +++ /dev/null @@ -1,20 +0,0 @@ - - .arch armv8.1-m.main - .arch_extension pacbti - .eabi_attribute 50, 2 - .eabi_attribute 52, 2 - .eabi_attribute 74, 1 - .eabi_attribute 76, 1 - .text - .syntax unified - .thumb - .thumb_func -foo: - .fnstart - push {r4, lr} - .save {r4, lr} - push {r12} - .save {ra_auth_code} - pop {r12} - pop {r4, pc} - .fnend