diff options
author | Alan Modra <amodra@gmail.com> | 2019-08-06 15:40:08 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-08-06 15:47:41 +0930 |
commit | 128bf1fe608badb59d27f9c5c8ffb1a6a6d9d811 (patch) | |
tree | cd5721a07cb8e85a949a9ab5508faa5222cb2332 /ld/ChangeLog | |
parent | b02c4f162335ed055964f603ba3aca18b0e5c5bf (diff) | |
download | gdb-128bf1fe608badb59d27f9c5c8ffb1a6a6d9d811.zip gdb-128bf1fe608badb59d27f9c5c8ffb1a6a6d9d811.tar.gz gdb-128bf1fe608badb59d27f9c5c8ffb1a6a6d9d811.tar.bz2 |
LTO object insertion point
This is a mostly cosmetic fix for cases like PR24873 where LTO
recompiled objects were supposed to be inserted inside a group. The
specific case handled by this patch is when the first file inside a
group is an archive, the first file claimed by the plugin. Prior to
this patch we would have inserted the recompiled objects before the
group, which doesn't matter really since the entire group will be
reloaded, but it looks a little wrong in map files.
PR 24873
* ldlang.c (find_replacements_insert_point): Return "before" flag.
(find_next_input_statement): New function.
(lang_process): When placing recompiled LTO objects before a
claimed archive, place them immediately before in the statement
list.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r-- | ld/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 8f9d1f0..563e482 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,6 +1,15 @@ 2019-08-06 Alan Modra <amodra@gmail.com> PR 24873 + * ldlang.c (find_replacements_insert_point): Return "before" flag. + (find_next_input_statement): New function. + (lang_process): When placing recompiled LTO objects before a + claimed archive, place them immediately before in the statement + list. + +2019-08-06 Alan Modra <amodra@gmail.com> + + PR 24873 * ldlang.c (plugin_undefs): New static var. (open_input_bfds <lang_group_statement_enum>): Loop on plugin_undefs and hitting plugin_insert point. |