diff options
author | Roland McGrath <mcgrathr@google.com> | 2016-08-12 09:50:49 -0700 |
---|---|---|
committer | Roland McGrath <mcgrathr@google.com> | 2016-08-12 09:50:49 -0700 |
commit | f300578f78f5ecddc9cfb28c02d032a0acffdf70 (patch) | |
tree | 17eff36a7e48846b8e5bc71d90f8e707b3f79f66 /gold/yyscript.y | |
parent | 90ac242072dc68ad454aaaa228868b0f1c8e10f9 (diff) | |
download | gdb-f300578f78f5ecddc9cfb28c02d032a0acffdf70.zip gdb-f300578f78f5ecddc9cfb28c02d032a0acffdf70.tar.gz gdb-f300578f78f5ecddc9cfb28c02d032a0acffdf70.tar.bz2 |
[gold] Implement HIDDEN syntax in linker scripts
gold/
* yyscript.y (HIDDEN): New %token.
(assignment): Handle HIDDEN(string = expr) syntax.
* script.cc (script_keyword_parsecodes): Add HIDDEN.
Diffstat (limited to 'gold/yyscript.y')
-rw-r--r-- | gold/yyscript.y | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/yyscript.y b/gold/yyscript.y index 7e6bd27..38831d5 100644 --- a/gold/yyscript.y +++ b/gold/yyscript.y @@ -137,6 +137,7 @@ %token FORCE_COMMON_ALLOCATION %token GLOBAL /* global */ %token GROUP +%token HIDDEN %token HLL %token INCLUDE %token INHIBIT_COMMON_ALLOCATION @@ -864,6 +865,8 @@ assignment: Expression_ptr e = script_exp_binary_bitwise_or(s, $3); script_set_symbol(closure, $1.value, $1.length, e, 0, 0); } + | HIDDEN '(' string '=' parse_exp ')' + { script_set_symbol(closure, $3.value, $3.length, $5, 0, 1); } | PROVIDE '(' string '=' parse_exp ')' { script_set_symbol(closure, $3.value, $3.length, $5, 1, 0); } | PROVIDE_HIDDEN '(' string '=' parse_exp ')' |