aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-08-03 15:47:26 -0700
committerH.J. Lu <hjl.tools@gmail.com>2018-08-03 15:47:26 -0700
commit39aac631baa1c5c540d16e45b64c2813a14f95b0 (patch)
tree2fa2b7fd27645cdac0337b50948af832faf8adce /ld/testsuite
parent425699f52d8fb875c2197b202b9e05bdc09d0115 (diff)
downloadgdb-39aac631baa1c5c540d16e45b64c2813a14f95b0.zip
gdb-39aac631baa1c5c540d16e45b64c2813a14f95b0.tar.gz
gdb-39aac631baa1c5c540d16e45b64c2813a14f95b0.tar.bz2
x32: Align the .note.gnu.property section to 4 bytes
The .note.gnu.property section should be aligned to 4 bytes for x32. * testsuite/ld-x86-64/property-x86-3.s: Use ".p2align 2" to align .note.gnu.property section if __64_bit__ is undefined.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-x86-64/property-x86-3.s4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/property-x86-3.s b/ld/testsuite/ld-x86-64/property-x86-3.s
index be8cc9e..239cf62 100644
--- a/ld/testsuite/ld-x86-64/property-x86-3.s
+++ b/ld/testsuite/ld-x86-64/property-x86-3.s
@@ -41,7 +41,11 @@
3:
.section ".note.gnu.property", "a"
+.ifdef __64_bit__
.p2align 3
+.else
+ .p2align 2
+.endif
.long 1f - 0f /* name length. */
.long 3f - 1f /* data length. */
/* NT_GNU_PROPERTY_TYPE_0 */