diff options
author | Nick Clifton <nickc@redhat.com> | 2013-08-15 07:30:14 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-08-15 07:30:14 +0000 |
commit | 7ac3fb3ea85f25cd882a7faa1da40ee6bba1f48e (patch) | |
tree | 8cf2052966468661e175cfe08e10d6793d38d5c1 /ld/ldlex.l | |
parent | 03c7145f376c7e5db6df76819fbfff9f29be9757 (diff) | |
download | binutils-redhat-7ac3fb3ea85f25cd882a7faa1da40ee6bba1f48e.tar.gz |
* 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/ldlex.l')
-rw-r--r-- | ld/ldlex.l | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldlex.l b/ld/ldlex.l index 75be86d7de..1695c278a4 100644 --- a/ld/ldlex.l +++ b/ld/ldlex.l @@ -257,6 +257,7 @@ V_IDENTIFIER [*?.$_a-zA-Z\[\]\-\!\^\\]([*?.$_a-zA-Z0-9\[\]\-\!\^\\]|::)* <EXPRESSION,BOTH,SCRIPT>"ALIGNOF" { RTOKEN(ALIGNOF); } <EXPRESSION,BOTH>"MAX" { RTOKEN(MAX_K); } <EXPRESSION,BOTH>"MIN" { RTOKEN(MIN_K); } +<EXPRESSION,BOTH>"LOG2CEIL" { RTOKEN(LOG2CEIL); } <EXPRESSION,BOTH,SCRIPT>"ASSERT" { RTOKEN(ASSERT_K); } <BOTH,SCRIPT>"ENTRY" { RTOKEN(ENTRY);} <BOTH,SCRIPT,MRI>"EXTERN" { RTOKEN(EXTERN);} |