aboutsummaryrefslogtreecommitdiff
path: root/gold/yyscript.y
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2010-06-09 14:14:18 +0000
committerNick Clifton <nickc@redhat.com>2010-06-09 14:14:18 +0000
commite1df38aad4ef1b435dd84ca885523d3014a09e62 (patch)
treec78fb34890de33e3dea0541b6d8ed8ce41cc32e7 /gold/yyscript.y
parentf0b3dbfc47e96c4c0dfabb010e34923dedfaae87 (diff)
downloadgdb-e1df38aad4ef1b435dd84ca885523d3014a09e62.zip
gdb-e1df38aad4ef1b435dd84ca885523d3014a09e62.tar.gz
gdb-e1df38aad4ef1b435dd84ca885523d3014a09e62.tar.bz2
* yyscript.y (input_list_element): Allow strings prefixed with
the '-' character. Treat these as libraries. * script.cc (script_add_library): New function. Adds a library specified by "-l<name>" found in an input script. * script-c.h: Add prototype for script_add_library.
Diffstat (limited to 'gold/yyscript.y')
-rw-r--r--gold/yyscript.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/gold/yyscript.y b/gold/yyscript.y
index f762536..9cd29fb 100644
--- a/gold/yyscript.y
+++ b/gold/yyscript.y
@@ -320,6 +320,8 @@ input_list:
input_list_element:
string
{ script_add_file(closure, $1.value, $1.length); }
+ | '-' STRING
+ { script_add_library(closure, $2.value, $2.length); }
| AS_NEEDED
{ script_start_as_needed(closure); }
'(' input_list ')'