From 80f3ac5d61a5d01d7cf951de0e24ecdc71c545cb Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 8 Oct 2018 05:14:02 -0700 Subject: x86: Don't add GNU_PROPERTY_X86_FEATURE_2_NEEDED for -z separate-code With commit 64029e93683a266c38d19789e780f3748bd6a188 Author: Alan Modra Date: Fri Oct 5 11:40:54 2018 +0930 Separate header PT_LOAD for -z separate-code there is no need to add a GNU_PROPERTY_X86_ISA_1_USED note to force program header in in non-code PT_LOAD segment when -z separate-code is used. bfd/ PR ld/23428 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Don't add GNU_PROPERTY_X86_FEATURE_2_NEEDED to force program header in non-code PT_LOAD segment. ld/ PR ld/23428 * testsuite/ld-i386/property-x86-4a.d: Updated. * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise. * testsuite/ld-x86-64/property-x86-4a.d: Likewise. --- ld/ChangeLog | 7 +++++++ ld/testsuite/ld-i386/property-x86-4a.d | 3 +-- ld/testsuite/ld-x86-64/property-x86-4a-x32.d | 3 +-- ld/testsuite/ld-x86-64/property-x86-4a.d | 3 +-- 4 files changed, 10 insertions(+), 6 deletions(-) (limited to 'ld') diff --git a/ld/ChangeLog b/ld/ChangeLog index 6c322c3..3580a2b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,12 @@ 2018-10-08 H.J. Lu + PR ld/23428 + * testsuite/ld-i386/property-x86-4a.d: Updated. + * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise. + * testsuite/ld-x86-64/property-x86-4a.d: Likewise. + +2018-10-08 H.J. Lu + PR ld/23658 * ldlang.c (lang_insert_orphan): Properly group and place orphan note sections. Properly handle orphan note section before all diff --git a/ld/testsuite/ld-i386/property-x86-4a.d b/ld/testsuite/ld-i386/property-x86-4a.d index 8ab0115..5e2b468 100644 --- a/ld/testsuite/ld-i386/property-x86-4a.d +++ b/ld/testsuite/ld-i386/property-x86-4a.d @@ -6,8 +6,7 @@ Displaying notes found in: .note.gnu.property Owner Data size Description - GNU 0x0000002c NT_GNU_PROPERTY_TYPE_0 + GNU 0x00000020 NT_GNU_PROPERTY_TYPE_0 Properties: no copy on protected - x86 feature needed: x86 x86 ISA used: x86 feature used: x86 diff --git a/ld/testsuite/ld-x86-64/property-x86-4a-x32.d b/ld/testsuite/ld-x86-64/property-x86-4a-x32.d index 9dd6e35..76f74e5 100644 --- a/ld/testsuite/ld-x86-64/property-x86-4a-x32.d +++ b/ld/testsuite/ld-x86-64/property-x86-4a-x32.d @@ -6,8 +6,7 @@ Displaying notes found in: .note.gnu.property Owner Data size Description - GNU 0x0000002c NT_GNU_PROPERTY_TYPE_0 + GNU 0x00000020 NT_GNU_PROPERTY_TYPE_0 Properties: no copy on protected - x86 feature needed: x86 x86 ISA used: x86 feature used: x86 diff --git a/ld/testsuite/ld-x86-64/property-x86-4a.d b/ld/testsuite/ld-x86-64/property-x86-4a.d index 4dc87ac..e76be79 100644 --- a/ld/testsuite/ld-x86-64/property-x86-4a.d +++ b/ld/testsuite/ld-x86-64/property-x86-4a.d @@ -6,8 +6,7 @@ Displaying notes found in: .note.gnu.property Owner Data size Description - GNU 0x00000038 NT_GNU_PROPERTY_TYPE_0 + GNU 0x00000028 NT_GNU_PROPERTY_TYPE_0 Properties: no copy on protected - x86 feature needed: x86 x86 ISA used: x86 feature used: x86 -- cgit v1.1