aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/property-x86-4b.s
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-05-19 08:36:06 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-05-19 08:45:24 -0700
commit92f7d783c1038841beacaba28a5f5d740a5ccad6 (patch)
tree811409c5c2daf0583d5d15309767f40630e01713 /ld/testsuite/ld-i386/property-x86-4b.s
parentae0264a6474d777650d65da261732748126f0190 (diff)
downloadgdb-92f7d783c1038841beacaba28a5f5d740a5ccad6.zip
gdb-92f7d783c1038841beacaba28a5f5d740a5ccad6.tar.gz
gdb-92f7d783c1038841beacaba28a5f5d740a5ccad6.tar.bz2
x86: Add GC testcases with property sections
Verify that debug section is removed by garbage collection when there is a .note.gnu.property section. * testsuite/ld-i386/i386.exp: Run property-x86-4a and property-x86-4b. * testsuite/ld-x86-64/x86-64.exp: Likewise. * testsuite/ld-i386/property-x86-4a.d: New file. * testsuite/ld-i386/property-x86-4a.s: Likewise. * testsuite/ld-i386/property-x86-4b.d: Likewise. * testsuite/ld-i386/property-x86-4b.s: Likewise. * testsuite/ld-x86-64/property-x86-4a.d: Likewise. * testsuite/ld-x86-64/property-x86-4a.s: Likewise. * testsuite/ld-x86-64/property-x86-4b.d: Likewise. * testsuite/ld-x86-64/property-x86-4b.s: Likewise.
Diffstat (limited to 'ld/testsuite/ld-i386/property-x86-4b.s')
-rw-r--r--ld/testsuite/ld-i386/property-x86-4b.s20
1 files changed, 20 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/property-x86-4b.s b/ld/testsuite/ld-i386/property-x86-4b.s
new file mode 100644
index 0000000..83aaf3e
--- /dev/null
+++ b/ld/testsuite/ld-i386/property-x86-4b.s
@@ -0,0 +1,20 @@
+ .section .debug_info,"",@progbits
+ .hidden t.c.4903c230
+ .globl t.c.4903c230
+t.c.4903c230:
+ .byte 0x28
+
+ .section ".note.gnu.property", "a"
+ .p2align 2
+ .long 1f - 0f /* name length. */
+ .long 3f - 2f /* data length. */
+ /* NT_GNU_PROPERTY_TYPE_0 */
+ .long 5 /* note type. */
+0: .asciz "GNU" /* vendor name. */
+1: .p2align 2
+2:
+ /* GNU_PROPERTY_NO_COPY_ON_PROTECTED */
+ .long 2 /* pr_type. */
+ .long 0 /* pr_datasz. */
+ .p2align 2
+3: