LTO object insertion point
authorAlan Modra <amodra@gmail.com>
Tue, 6 Aug 2019 06:10:08 +0000 (15:40 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 6 Aug 2019 06:17:41 +0000 (15:47 +0930)
commit128bf1fe608badb59d27f9c5c8ffb1a6a6d9d811
treecd5721a07cb8e85a949a9ab5508faa5222cb2332
parentb02c4f162335ed055964f603ba3aca18b0e5c5bf
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.
ld/ChangeLog
ld/ldlang.c
This page took 0.025585 seconds and 4 git commands to generate.