aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-08-02 19:01:58 +0000
committerIan Lance Taylor <ian@airs.com>1996-08-02 19:01:58 +0000
commit5735ac9e57fe37d7984e6f71d551f9b0ebd87721 (patch)
tree4971d92383158bd9e10a126d93be8b9406c40fe6 /ld/ld.texinfo
parent10a14e3639d6b655afd296809ec4102e1ba26b7f (diff)
downloadbinutils-5735ac9e57fe37d7984e6f71d551f9b0ebd87721.zip
binutils-5735ac9e57fe37d7984e6f71d551f9b0ebd87721.tar.gz
binutils-5735ac9e57fe37d7984e6f71d551f9b0ebd87721.tar.bz2
* ldgram.y (LOADADDR): New terminal.
(exp): Handle LOADADDR. * ldlex.l: Recognize LOADADDR. * ldexp.c (exp_print_token): Add LOADADDR. (fold_name): Implement LOADADDR. * ldlang.c (exp_init_os): Treat LOADADDR like ADDR. * ld.texinfo (Arithmetic Functions): Document LOADADDR.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r--ld/ld.texinfo8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index 99450f6..d279d31 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -1582,6 +1582,14 @@ SECTIONS@{ @dots{}
@end group
@end smallexample
+@kindex LOADADDR(@var{section})
+@cindex section load address
+@item LOADADDR(@var{section})
+Return the absolute load address of the named @var{section}. This is
+normally the same as @code{ADDR}, but it may be different if the
+@code{AT} keyword is used in the section definition (@pxref{Section
+Options}).
+
@kindex ALIGN(@var{exp})
@cindex rounding up location counter
@item ALIGN(@var{exp})