mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
f3e660db14
Properly group orphan note sections. When placing orphan note section as the first note section, place it after the section before all note sections. PR ld/23658 * ldlang.c (lang_insert_orphan): Properly group and place orphan note sections. Properly handle orphan note section before all note sections. * testsuite/ld-elf/pr23658-1.d: Renamed to ... * testsuite/ld-elf/pr23658-1a.d: This. Updated. * testsuite/ld-elf/pr23658-1b.d: New test. * testsuite/ld-elf/pr23658-1c.d: Likewise.
21 lines
642 B
Makefile
21 lines
642 B
Makefile
#source: pr23658-1a.s
|
|
#source: pr23658-1b.s
|
|
#source: pr23658-1c.s
|
|
#source: pr23658-1d.s
|
|
#source: start.s
|
|
#ld: --build-id
|
|
#readelf: -l --wide
|
|
# Since generic linker targets don't place SHT_NOTE sections as orphan,
|
|
# SHT_NOTE sections aren't grouped nor sorted.
|
|
#xfail: d30v-* dlx-* fr30-* frv-*-elf ft32-* iq2000-*
|
|
#xfail: m68hc12-* mn10200-* moxie-* mt-* msp430-* pj-* xgate-*
|
|
# The following targets don't support --build-id.
|
|
#xfail: cr16-* crx-* visium-* xc16x-*
|
|
# The following targets place .note.gnu.build-id in unusual places.
|
|
#xfail: pru-*
|
|
|
|
#...
|
|
+[0-9]+ +\.note\.4 \.note\.1 +
|
|
+[0-9]+ +\.note.gnu.build-id \.note\.2 .note\.3 +
|
|
#pass
|