x32: Align the .note.gnu.property section to 4 bytes
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 3 Aug 2018 22:47:26 +0000 (15:47 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 3 Aug 2018 22:47:26 +0000 (15:47 -0700)
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.

ld/ChangeLog
ld/testsuite/ld-x86-64/property-x86-3.s

index 1173c03dac32ded853fe5ee746d28fe31e1a96f5..d1a15df224908b8f665a4459f9e9572d76147f45 100644 (file)
@@ -1,3 +1,8 @@
+2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-x86-64/property-x86-3.s: Use ".p2align 2" to
+       align .note.gnu.property section if __64_bit__ is undefined.
+
 2018-08-02  Nick Clifton  <nickc@redhat.com>
 
        PR 23463
index be8cc9efb1b1914d338f2038e43d19b16b7fb489..239cf622ff57353bace680483465cf7de5e9a999 100644 (file)
 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 */