mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-18 14:53:32 +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.
14 lines
297 B
Makefile
14 lines
297 B
Makefile
#source: pr23658-1a.s
|
|
#source: pr23658-1b.s
|
|
#source: pr23658-1c.s
|
|
#source: pr23658-1d.s
|
|
#source: start.s
|
|
#ld: --build-id -shared
|
|
#readelf: -l --wide
|
|
#target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi
|
|
|
|
#...
|
|
+[0-9]+ +\.note\.4 \.note\.1 +
|
|
+[0-9]+ +\.note.gnu.build-id \.note\.2 .note\.3 +
|
|
#pass
|