summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/property-x86-4a-x32.d
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-06-09 10:43:43 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-06-09 10:43:43 -0700
commit654f3b6a2af84ba0f9c6a4c011364b8f650d66a6 (patch)
tree2ac34eef00468c6f56933a7e015c661c8630d689 /ld/testsuite/ld-x86-64/property-x86-4a-x32.d
parentdbb2bcd0059f8d91de5a792f8684c8908c316720 (diff)
downloadbinutils-gdb-654f3b6a2af84ba0f9c6a4c011364b8f650d66a6.tar.gz
x86-64: Add some x32 ELF property tests
* testsuite/ld-x86-64/property-x86-3-x32.d: New file. * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise. * testsuite/ld-x86-64/property-x86-4b-x32.d: Likewise. * testsuite/ld-x86-64/property-x86-3.d: Also pass -defsym __64_bit__=1 to asssembler. * testsuite/ld-x86-64/property-x86-4a.d: Likewise. * testsuite/ld-x86-64/property-x86-4b.d: Likewise. * testsuite/ld-x86-64/property-x86-3.s: Align to 4 bytes if __64_bit__ isn't defined. * testsuite/ld-x86-64/property-x86-4a.s: Likewise. * testsuite/ld-x86-64/property-x86-4b.s: Likewise. * testsuite/ld-x86-64/x86-64.exp: Run property-x86-3-x32, property-x86-4a-x32 and property-x86-4b-x32.
Diffstat (limited to 'ld/testsuite/ld-x86-64/property-x86-4a-x32.d')
-rw-r--r--ld/testsuite/ld-x86-64/property-x86-4a-x32.d10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/property-x86-4a-x32.d b/ld/testsuite/ld-x86-64/property-x86-4a-x32.d
new file mode 100644
index 00000000000..90125135332
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/property-x86-4a-x32.d
@@ -0,0 +1,10 @@
+#source: property-x86-4a.s
+#source: property-x86-4b.s
+#as: --x32
+#ld: -m elf32_x86_64 --gc-sections --entry=main
+#readelf: -n
+
+Displaying notes found in: .note.gnu.property
+ Owner Data size Description
+ GNU 0x00000008 NT_GNU_PROPERTY_TYPE_0
+ Properties: no copy on protected