diff options
author | Alan Modra <amodra@gmail.com> | 2015-10-29 16:16:22 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-10-29 19:42:50 +1030 |
commit | 936384714fa8b0f7ca8cc3b5637394461bc998c8 (patch) | |
tree | 2dbee0b6a2d5c5b00506e43e5e24c7090f284345 /ld/ChangeLog | |
parent | d85063237a6a579905f9a3ead5749fb4e931dec3 (diff) | |
download | gdb-936384714fa8b0f7ca8cc3b5637394461bc998c8.zip gdb-936384714fa8b0f7ca8cc3b5637394461bc998c8.tar.gz gdb-936384714fa8b0f7ca8cc3b5637394461bc998c8.tar.bz2 |
Re: Orphan output section with multiple input sections
The last patch missed handling the case where the ideal place to put
an orphan was after a non-existent output section statement, as can
happen when not using the builtin linker scripts. This patch uses the
updated flags for that case too, and extends the support to mmo and pe.
PR ld/19162
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Pass
updated flags to lang_output_section_find_by_flags.
* emultempl/mmo.em (mmo_place_orphan): Merge flags for any
other input sections that might match a new output section to
decide placement.
* emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
* emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
* ldlang.c (lang_output_section_find_by_flags): Add sec_flags param.
* ldlang.h (lang_output_section_find_by_flags): Update prototype.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r-- | ld/ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index d187c0c..69363e1 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,16 @@ +2015-10-29 Alan Modra <amodra@gmail.com> + + PR ld/19162 + * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Pass + updated flags to lang_output_section_find_by_flags. + * emultempl/mmo.em (mmo_place_orphan): Merge flags for any + other input sections that might match a new output section to + decide placement. + * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise. + * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise. + * ldlang.c (lang_output_section_find_by_flags): Add sec_flags param. + * ldlang.h (lang_output_section_find_by_flags): Update prototype. + 2015-10-29 Matthias Klose <doko@ubuntu.com> * ld.texinfo (Options <-rpath>): Fix typo. |