]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld/ELF: explicitly place .note.gnu.property
authorJan Beulich <jbeulich@suse.com>
Tue, 26 Aug 2025 08:42:31 +0000 (10:42 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 26 Aug 2025 08:42:31 +0000 (10:42 +0200)
x86 gas may produce .note.gnu.property by default. Hence the default
linker script would better also deal with that section, rather than
causing diagnostics when using --orphan-handling=. Replace all mis-
spellings that have accumulated.

To avoid needlessly relaxing expectations for two tests when run for
PPC 64-bit ELF targets, suppress the linker generating EH frame data
there.

ld/scripttempl/elf.sc
ld/testsuite/ld-aarch64/protections/bti-far.ld
ld/testsuite/ld-aarch64/protections/bti-plt.ld
ld/testsuite/ld-elf/elf.exp

index be8d19fcf1112bc42741d102c3f292dd0cc4512a..6d34912e45d3c0c58db0d195965973978dac529f 100644 (file)
@@ -734,7 +734,7 @@ cat <<EOF
      data, but this is not guaranteed to always be the case.  */
   .note.build-id :      { *(.note.build-id) } ${RELOCATING+${REGION}}
   .note.GNU-stack :     { *(.note.GNU-stack) } ${RELOCATING+${REGION}}
-  .note.gnu-property :  { *(.note.gnu-property) } ${RELOCATING+${REGION}}
+  .note.gnu.property :  { *(.note.gnu.property) } ${RELOCATING+${REGION}}
   .note.ABI-tag :       { *(.note.ABI-tag) } ${RELOCATING+${REGION}}
   .note.package :       { *(.note.package) } ${RELOCATING+${REGION}}
   .note.dlopen :        { *(.note.dlopen) } ${RELOCATING+${REGION}}
index 1568f184a302ed74d94caadf3cc34188e6072b63..d3ed90428e2850ee468f8f7e5e0b3d095b99f6fb 100644 (file)
@@ -19,7 +19,7 @@ SECTIONS
   . = 0x12340000;
   .far               : { *(.far) }
   /* Start of the Read Only Data region.  */
-  .note.gnu-property : { *(.note.gnu-property) }
+  .note.gnu.property : { *(.note.gnu.property) }
 
   /* Start of the Read Write Data region.  */
   . = ALIGN (CONSTANT (MAXPAGESIZE));
index c930fc8c37229a4957b37a2d750aabfada7032fc..fffb8a98cd46d61d57e684cd96fe8c137e3d1ca5 100644 (file)
@@ -17,7 +17,7 @@ SECTIONS
   . = 0x20000;
   .text              : { *(.text) }
   /* Start of the Read Only Data region.  */
-  .note.gnu-property : { *(.note.gnu-property) }
+  .note.gnu.property : { *(.note.gnu.property) }
 
   /* Start of the Read Write Data region.  */
   . = ALIGN (CONSTANT (MAXPAGESIZE));
index bb1f0eb6d65432f2b05f86ebc3a6673c5351ae26..098e712e7b0de3619e3cfdb5844d465642f5a227 100644 (file)
@@ -86,6 +86,9 @@ run_ld_link_tests [list \
 
 if [is_elf64 tmpdir/symbol3w.a] {
     set ASFLAGS "$ASFLAGS --defsym ALIGN=3"
+    if { [istarget powerpc*-*-linux*] } {
+       set LDFLAGS "$LDFLAGS --no-ld-generated-unwind-info"
+    }
     set pr23900_1_exp "pr23900-1-64.rd"
     set pr25490_2_exp "pr25490-2-64.rd"
     set pr25490_3_exp "pr25490-3-64.rd"