projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix internal error from command line with unbalanced --start-lib/--end-lib.
[deliverable/binutils-gdb.git]
/
gold
/
options.cc
diff --git
a/gold/options.cc
b/gold/options.cc
index ed63b6f04feb08b1f6c75d7ada86d1d0eb1f2bdb..f54fb9b1cb4946a177fbda740915f3086896fa12 100644
(file)
--- a/
gold/options.cc
+++ b/
gold/options.cc
@@
-1569,6
+1569,12
@@
Command_line::process(int argc, const char** argv)
usage();
}
+ if (this->inputs_.in_lib())
+ {
+ fprintf(stderr, _("%s: missing lib end\n"), program_name);
+ usage();
+ }
+
// Normalize the options and ensure they don't contradict each other.
this->options_.finalize();
}
This page took
0.023421 seconds
and
4
git commands to generate.