From: H.J. Lu Date: Fri, 3 Aug 2018 22:47:26 +0000 (-0700) Subject: x32: Align the .note.gnu.property section to 4 bytes X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b075c7167d68d656c8197b17ccdb4e3c6fbdc5c;p=thirdparty%2Fbinutils-gdb.git 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. (cherry picked from commit 39aac631baa1c5c540d16e45b64c2813a14f95b0) --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 97fe5699c84..ef694e8980d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2018-08-10 H.J. Lu + + * testsuite/ld-x86-64/property-x86-3.s: Use ".p2align 2" to + align .note.gnu.property section if __64_bit__ is undefined. + 2018-08-01 Alan Modra * testsuite/ld-powerpc/powerpc.exp: Run tlsopt5 with hash-style diff --git a/ld/testsuite/ld-x86-64/property-x86-3.s b/ld/testsuite/ld-x86-64/property-x86-3.s index be8cc9efb1b..239cf622ff5 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 */