diff options
author | Alan Modra <amodra@gmail.com> | 2020-12-24 15:56:23 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-12-24 22:58:03 +1030 |
commit | de34d42812a0b978b278cd344abeaee7c71fa55c (patch) | |
tree | 3ce14917aa8bf1a4949291d3b4db89f8a42da4df /ld/ChangeLog | |
parent | 62fa7b3c6a7bca91df55cf520a97cb047070a475 (diff) | |
download | binutils-de34d42812a0b978b278cd344abeaee7c71fa55c.zip binutils-de34d42812a0b978b278cd344abeaee7c71fa55c.tar.gz binutils-de34d42812a0b978b278cd344abeaee7c71fa55c.tar.bz2 |
PR27100, final link failed: bad value
The failure on this PR is due to using the same bfd section for
multiple output sections. Commit 21401fc7bf67 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.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r-- | ld/ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index c34409c..7d67ef2 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,17 @@ +2020-12-24 Alan Modra <amodra@gmail.com> + + 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. + 2020-12-23 H.J. Lu <hongjiu.lu@intel.com> * NEWS: Mention LAM_U48 and LAM_U57 support. |