diff options
author | Nick Clifton <nickc@redhat.com> | 2013-08-15 07:30:15 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-08-15 07:30:15 +0000 |
commit | 2e53f7d6010d59f1ea82d55dbe3ba41e5c460ae3 (patch) | |
tree | 510c2984267e3a436846b3634a33fc9cb5268b38 /ld/ldgram.y | |
parent | dbdf691ab9456824b7650f56186e1569335c6235 (diff) | |
download | gdb-2e53f7d6010d59f1ea82d55dbe3ba41e5c460ae3.zip gdb-2e53f7d6010d59f1ea82d55dbe3ba41e5c460ae3.tar.gz gdb-2e53f7d6010d59f1ea82d55dbe3ba41e5c460ae3.tar.bz2 |
* ldexp.c: Add LOG2CEIL() builtin function to linker script language
* ldgram.y: Likewise
* ldlex.l: Likewise
* NEWS: Mention the new feature.
* ld.texinfo: Document the new feature.
* ld-scripts/log2.exp: New: Run the new log2 test.
* ld-scripts/log2.s: Source for the new test.
* ld-scripts/log2.t: Linker script for new test.
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r-- | ld/ldgram.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y index 26cb677..1ded4e7 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -148,7 +148,7 @@ static int error_index; %type <token> assign_op atype attributes_opt sect_constraint opt_align_with_input %type <name> filename %token CHIP LIST SECT ABSOLUTE LOAD NEWLINE ENDWORD ORDER NAMEWORD ASSERT_K -%token FORMAT PUBLIC DEFSYMEND BASE ALIAS TRUNCATE REL +%token LOG2CEIL FORMAT PUBLIC DEFSYMEND BASE ALIAS TRUNCATE REL %token INPUT_SCRIPT INPUT_MRI_SCRIPT INPUT_DEFSYM CASE EXTERN START %token <name> VERS_TAG VERS_IDENTIFIER %token GLOBAL LOCAL VERSIONK INPUT_VERSION_SCRIPT @@ -1010,6 +1010,8 @@ exp : { $$ = exp_nameop (ORIGIN, $3); } | LENGTH '(' NAME ')' { $$ = exp_nameop (LENGTH, $3); } + | LOG2CEIL '(' exp ')' + { $$ = exp_unop (LOG2CEIL, $3); } ; |