Mercurial > hg > index.cgi
diff docs/manual/x795.html @ 234:d389adbcc4ab
Added section base and length symbols to lwlink
Added the ability for a link script to define section base and section
length symbols when linking. These symbols are searched for when an external
reference is resolved before looking up any symbols in the various objects
being linked. Also documented the new link script directives and added such
directives to all default link scripts.
author | William Astle <lost@l-w.ca> |
---|---|
date | Fri, 10 Aug 2012 23:47:56 -0600 |
parents | 2cc599f1bebf |
children | ce1fdc8d6568 |
line wrap: on
line diff
--- a/docs/manual/x795.html Thu Jul 19 13:17:30 2012 -0600 +++ b/docs/manual/x795.html Fri Aug 10 23:47:56 2012 -0600 @@ -17,7 +17,7 @@ HREF="x781.html"><LINK REL="NEXT" TITLE="Format Specific Linking Notes" -HREF="x829.html"></HEAD +HREF="x843.html"></HEAD ><BODY CLASS="SECTION" BGCOLOR="#FFFFFF" @@ -59,7 +59,7 @@ ALIGN="right" VALIGN="bottom" ><A -HREF="x829.html" +HREF="x843.html" ACCESSKEY="N" >Next</A ></TD @@ -104,6 +104,44 @@ CLASS="VARIABLELIST" ><DL ><DT +>define basesympat <CODE +CLASS="PARAMETER" +>string</CODE +></DT +><DD +><P +> This causes the linker to define a symbol for the ultimate base address of +each section using the pattern specified by <CODE +CLASS="PARAMETER" +>string</CODE +>. +In the string, %s can appear exactly once and will be replaced with the +section name. The base address is calculated after all instances of each +section have been collapsed together. </P +><P +> If the pattern resolves to the same string for multiple +sections, the results are undefined. </P +></DD +><DT +>define lensympat <CODE +CLASS="PARAMETER" +>string</CODE +></DT +><DD +><P +> This causes the linker to define a symbol for the ultimate length of each +section using the pattern specified by <CODE +CLASS="PARAMETER" +>string</CODE +>. In +the string, %s can appear exactly once and will be replaced with the section +name. The length is calculated after all instances of a section have been +collapsed together. </P +><P +>If the pattern resolves to the same string for multiple +sections, the results are undefined. </P +></DD +><DT >section <CODE CLASS="PARAMETER" >name</CODE @@ -210,7 +248,7 @@ ALIGN="right" VALIGN="top" ><A -HREF="x829.html" +HREF="x843.html" ACCESSKEY="N" >Next</A ></TD