diff options
author | Alan Modra <amodra@gmail.com> | 2020-11-24 23:41:31 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-11-25 19:13:51 +1030 |
commit | 21401fc7bf67dbf73f4a3eda4bcfc58fa4211584 (patch) | |
tree | e3c07e14b0b760173b5abeb0269a191352cec45e /bfd | |
parent | 6595cf3ce81572a8941bd9d16d6518091e6e6937 (diff) | |
download | gdb-21401fc7bf67dbf73f4a3eda4bcfc58fa4211584.zip gdb-21401fc7bf67dbf73f4a3eda4bcfc58fa4211584.tar.gz gdb-21401fc7bf67dbf73f4a3eda4bcfc58fa4211584.tar.bz2 |
Duplicate output sections in scripts
Previously, ld merged duplicate output sections if such existed in
scripts, except for those with a constraint of SPECIAL. This makes
scripts with duplicate output section statements create duplicate
output sections in the linker output file.
* ldlang.c (lang_output_section_statement_lookup): Change "create"
parameter to a tristate, if 2 then always create a new output
section statement. Update all callers, with
lang_enter_output_section_statement using "2".
(map_input_to_output_sections): Don't ignore SPECIAL constraint
here.
* ldlang.h (lang_output_section_statement_type): Update prototype.
(lang_output_section_find): Update.
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions