From 8a308ae82be6a1bd6f53b457a63a037bdf358dd1 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 3 Feb 2009 17:04:53 +0000 Subject: PR 9797 * ld.texinfo (Constants): Document the base-encoding suffixes supported in linker scripts. --- ld/ld.texinfo | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'ld/ld.texinfo') diff --git a/ld/ld.texinfo b/ld/ld.texinfo index ae8e2b7..49d1743 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -1,7 +1,8 @@ \input texinfo @setfilename ld.info @c Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, -@c 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +@c 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 +@c Free Software Foundation, Inc. @syncodeindex ky cp @c man begin INCLUDE @include configdoc.texi @@ -54,7 +55,7 @@ This file documents the @sc{gnu} linker LD version @value{VERSION}. Copyright @copyright{} 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 @@ -4728,7 +4729,10 @@ All constants are integers. As in C, the linker considers an integer beginning with @samp{0} to be octal, and an integer beginning with @samp{0x} or @samp{0X} to be -hexadecimal. The linker considers other integers to be decimal. +hexadecimal. Alternatively the linker accepts suffixes of @samp{h} or +@samp{H} for hexadeciaml, @samp{o} or @samp{O} for octal, @samp{b} or +@samp{B} for binary and @samp{d} or @samp{D} for decimal. Any integer +value without a prefix or a suffix is considered to be decimal. @cindex scaled integers @cindex K and M integer suffixes @@ -4747,13 +4751,19 @@ constant by ${\rm 1024}$ or ${\rm 1024}^2$ @end tex @c END TEXI2ROFF-KILL -respectively. For example, the following all refer to the same quantity: +respectively. For example, the following +all refer to the same quantity: + @smallexample _fourk_1 = 4K; _fourk_2 = 4096; _fourk_3 = 0x1000; +_fourk_4 = 10000o; @end smallexample +Note - the @code{K} and @code{M} suffixes cannot be used in +conjunction with the base suffixes mentioned above. + @node Symbols @subsection Symbol Names @cindex symbol names -- cgit v1.1