1<html lang="en"> 2<head> 3<title>Symbolic Constants - Untitled</title> 4<meta http-equiv="Content-Type" content="text/html"> 5<meta name="description" content="Untitled"> 6<meta name="generator" content="makeinfo 4.13"> 7<link title="Top" rel="start" href="index.html#Top"> 8<link rel="up" href="Expressions.html#Expressions" title="Expressions"> 9<link rel="prev" href="Constants.html#Constants" title="Constants"> 10<link rel="next" href="Symbols.html#Symbols" title="Symbols"> 11<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> 12<!-- 13This file documents the GNU linker LD 14(Sourcery CodeBench Lite 2013.11-24) 15version 2.23.52. 16 17Copyright (C) 1991-2013 Free Software Foundation, Inc. 18 19Permission is granted to copy, distribute and/or modify this document 20under the terms of the GNU Free Documentation License, Version 1.3 21or any later version published by the Free Software Foundation; 22with no Invariant Sections, with no Front-Cover Texts, and with no 23Back-Cover Texts. A copy of the license is included in the 24section entitled ``GNU Free Documentation License''.--> 25<meta http-equiv="Content-Style-Type" content="text/css"> 26<style type="text/css"><!-- 27 pre.display { font-family:inherit } 28 pre.format { font-family:inherit } 29 pre.smalldisplay { font-family:inherit; font-size:smaller } 30 pre.smallformat { font-family:inherit; font-size:smaller } 31 pre.smallexample { font-size:smaller } 32 pre.smalllisp { font-size:smaller } 33 span.sc { font-variant:small-caps } 34 span.roman { font-family:serif; font-weight:normal; } 35 span.sansserif { font-family:sans-serif; font-weight:normal; } 36--></style> 37<link rel="stylesheet" type="text/css" href="../cs.css"> 38</head> 39<body> 40<div class="node"> 41<a name="Symbolic-Constants"></a> 42<p> 43Next: <a rel="next" accesskey="n" href="Symbols.html#Symbols">Symbols</a>, 44Previous: <a rel="previous" accesskey="p" href="Constants.html#Constants">Constants</a>, 45Up: <a rel="up" accesskey="u" href="Expressions.html#Expressions">Expressions</a> 46<hr> 47</div> 48 49<h4 class="subsection">3.10.2 Symbolic Constants</h4> 50 51<p><a name="index-symbolic-constants-515"></a><a name="index-CONSTANT-516"></a>It is possible to refer to target specific constants via the use of 52the <code>CONSTANT(</code><var>name</var><code>)</code> operator, where <var>name</var> is one of: 53 54 <dl> 55<dt><code>MAXPAGESIZE</code><dd><a name="index-MAXPAGESIZE-517"></a>The target's maximum page size. 56 57 <br><dt><code>COMMONPAGESIZE</code><dd><a name="index-COMMONPAGESIZE-518"></a>The target's default page size. 58</dl> 59 60 <p>So for example: 61 62<pre class="smallexample"> .text ALIGN (CONSTANT (MAXPAGESIZE)) : { *(.text) } 63</pre> 64 <p>will create a text section aligned to the largest page boundary 65supported by the target. 66 67 </body></html> 68 69