diff options
author | Nick Clifton <nickc@redhat.com> | 2010-06-09 14:14:18 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2010-06-09 14:14:18 +0000 |
commit | e1df38aad4ef1b435dd84ca885523d3014a09e62 (patch) | |
tree | c78fb34890de33e3dea0541b6d8ed8ce41cc32e7 /gold/script-c.h | |
parent | f0b3dbfc47e96c4c0dfabb010e34923dedfaae87 (diff) | |
download | gdb-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/script-c.h')
-rw-r--r-- | gold/script-c.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/script-c.h b/gold/script-c.h index 77b4aa4..29901e3 100644 --- a/gold/script-c.h +++ b/gold/script-c.h @@ -236,6 +236,11 @@ script_add_extern(void* closure, const char*, size_t); extern void script_add_file(void* closure, const char*, size_t); +/* Called by the bison parser to add a library to the link. */ + +extern void +script_add_library(void* closure, const char*, size_t); + /* Called by the bison parser to start and stop a group. */ extern void |