aboutsummaryrefslogtreecommitdiff
path: root/gold/descriptors.cc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-11-24 23:41:31 +1030
committerAlan Modra <amodra@gmail.com>2020-11-25 19:13:51 +1030
commit21401fc7bf67dbf73f4a3eda4bcfc58fa4211584 (patch)
treee3c07e14b0b760173b5abeb0269a191352cec45e /gold/descriptors.cc
parent6595cf3ce81572a8941bd9d16d6518091e6e6937 (diff)
downloadgdb-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 'gold/descriptors.cc')
0 files changed, 0 insertions, 0 deletions