summaryrefslogtreecommitdiff
path: root/gold/script-c.h
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/script-c.h
parentf0b3dbfc47e96c4c0dfabb010e34923dedfaae87 (diff)
downloadbinutils-gdb-e1df38aad4ef1b435dd84ca885523d3014a09e62.tar.gz
* 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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/script-c.h b/gold/script-c.h
index 77b4aa410b5..29901e3c3a8 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