LD: Support fixed-size sections some psABIs may require
authorMaciej W. Rozycki <macro@mips.com>
Mon, 19 Feb 2018 18:38:41 +0000 (18:38 +0000)
committerMaciej W. Rozycki <macro@mips.com>
Mon, 19 Feb 2018 18:38:41 +0000 (18:38 +0000)
commit8772de117d8366988bc60c9f9c571e262ef75932
tree2ecb85a275d6db8cc6936f7070fa40ba11238bc8
parent4f7fd351a727ffc44d3dd4e00ddf5222cd2063c5
LD: Support fixed-size sections some psABIs may require

Define a SEC_FIXED_SIZE section flag for target backends to use for
output sections whose size has been fixed in the psABI.  The size of
such sections will not be changed anyhow by the generic linker and it is
up to the target backend to get their size right.

bfd/
* section.c (SEC_FIXED_SIZE): New macro.
* bfd-in2.h: Regenerate.

ld/
* ldlang.c (insert_pad): Do not change output section's size if
SEC_FIXED_SIZE is set in the flags.
(size_input_section): Likewise.
(lang_size_sections_1): Likewise.
(lang_reset_memory_regions): Likewise.
bfd/ChangeLog
bfd/bfd-in2.h
bfd/section.c
ld/ChangeLog
ld/ldlang.c