From afc06bb8287c9a5c81be4810fd0384e952dd19ea Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 24 Mar 2009 19:08:37 +0000 Subject: * yyscript.y (file_cmd): Recognize EXTERN. (extern_name_list, extern_name_list_body): New nonterminals. * script.cc (script_add_extern): Define. * script-c.h (script_add_extern): Declare. --- gold/script-c.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gold/script-c.h') diff --git a/gold/script-c.h b/gold/script-c.h index 13c789a..3da634f 100644 --- a/gold/script-c.h +++ b/gold/script-c.h @@ -211,6 +211,12 @@ yylex(YYSTYPE*, void* closure); extern void yyerror(void* closure, const char*); +/* Called by the bison parser to add an external symbol (a symbol in + an EXTERN declaration) to the link. */ + +extern void +script_add_extern(void* closure, const char*, size_t); + /* Called by the bison parser to add a file to the link. */ extern void -- cgit v1.1