aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-08-15 07:30:15 +0000
committerNick Clifton <nickc@redhat.com>2013-08-15 07:30:15 +0000
commit2e53f7d6010d59f1ea82d55dbe3ba41e5c460ae3 (patch)
tree510c2984267e3a436846b3634a33fc9cb5268b38 /ld/ld.texinfo
parentdbdf691ab9456824b7650f56186e1569335c6235 (diff)
downloadgdb-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/ld.texinfo')
-rw-r--r--ld/ld.texinfo5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index 986194b..00a0fa4 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -5947,6 +5947,11 @@ Return the length of the memory region named @var{memory}.
Return the absolute LMA of the named @var{section}. (@pxref{Output
Section LMA}).
+@item LOG2CEIL(@var{exp})
+@kindex LOG2CEIL(@var{exp})
+Return the binary logarithm of @var{exp} rounded towards infinity.
+@code{LOG2CEIL(0)} returns 0.
+
@kindex MAX
@item MAX(@var{exp1}, @var{exp2})
Returns the maximum of @var{exp1} and @var{exp2}.