aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-07-31 23:10:40 +0930
committerAlan Modra <amodra@gmail.com>2019-08-01 14:38:57 +0930
commit776ab89fe3cdce91cd644058c9fcda0c506f995b (patch)
treec9b51eed5f4873eb3ccdf0b144318e4beb722ebb /ld/lexsup.c
parent5c1e6d53a518442741f05175dbded0d1880f4759 (diff)
downloadgdb-776ab89fe3cdce91cd644058c9fcda0c506f995b.zip
gdb-776ab89fe3cdce91cd644058c9fcda0c506f995b.tar.gz
gdb-776ab89fe3cdce91cd644058c9fcda0c506f995b.tar.bz2
PR24806, Linking with -T inside --start-group/--end-group
This patch processes INSERT AFTER and INSERT BEFORE in a user -T script when such a script is invoked on the command line inside --start-group/--end-group. Also, ld now warns when the user simply forgot --end-group. PR 24806 * ldlang.c (process_insert_statements): Add start of list parameter. Use rather than lang_os_list.head. Process insert statements inside group statements with a recursive call. (lang_process): Adjust process_insert_statements call. * lexsup.c (parse_args): Warn when adding missing --end-group.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r--ld/lexsup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c
index 2539356..d4f1981 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -1602,6 +1602,7 @@ parse_args (unsigned argc, char **argv)
while (ingroup)
{
+ einfo (_("%P: missing --end-group; added as last command line option\n"));
lang_leave_group ();
ingroup--;
}