mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
de34d42812
The failure on this PR is due to using the same bfd section for
multiple output sections. Commit 21401fc7bf
managed to create
duplicate linker script output section statements, but not the actual
bfd sections.
PR 27100
* ldlang.h (lang_output_section_statement_type): Add dup_output.
* ldlang.c (lang_output_section_statement_lookup): Set dup_output.
(init_os): Test dup_output rather than constraint.
* testsuite/ld-scripts/pr27100.d,
* testsuite/ld-scripts/pr27100.s,
* testsuite/ld-scripts/pr27100.t: New test.
* testsuite/ld-scripts/data.exp: Run it. Don't exclude aout here.
* testsuite/ld-scripts/data.d: Do so here instead.
* testsuite/ld-scripts/fill.d: Likewise.
* testsuite/ld-scripts/fill16.d: Likewise.
11 lines
177 B
Makefile
11 lines
177 B
Makefile
#ld: -r -T pr27100.t
|
|
#objdump: -h
|
|
#notarget: [is_aout_format]
|
|
#xfail: alpha*-*-*vms* mmix-*-* *c54x-*-* [is_xcoff_format]
|
|
|
|
#...
|
|
.* \.data +0+60 .*
|
|
#...
|
|
.* \.data +0+10 .*
|
|
#pass
|