* ld.texinfo (ALIGN): Remove power of 2 restriction.
This commit is contained in:
parent
c553bb910d
commit
3c6706bb5f
2 changed files with 2 additions and 6 deletions
|
@ -10,6 +10,7 @@
|
||||||
(exp_fold_tree): Likewise.
|
(exp_fold_tree): Likewise.
|
||||||
* ldlang.c (lang_size_sections_1): Likewise.
|
* ldlang.c (lang_size_sections_1): Likewise.
|
||||||
(lang_one_common): Likewise.
|
(lang_one_common): Likewise.
|
||||||
|
* ld.texinfo (ALIGN): Remove power of 2 restriction.
|
||||||
|
|
||||||
2002-07-31 Graeme Peterson <gp@qnx.com>
|
2002-07-31 Graeme Peterson <gp@qnx.com>
|
||||||
|
|
||||||
|
|
|
@ -4158,12 +4158,7 @@ SECTIONS @{ @dots{}
|
||||||
@cindex round up location counter
|
@cindex round up location counter
|
||||||
@cindex align location counter
|
@cindex align location counter
|
||||||
Return the location counter (@code{.}) aligned to the next @var{exp}
|
Return the location counter (@code{.}) aligned to the next @var{exp}
|
||||||
boundary. @var{exp} must be an expression whose value is a power of
|
boundary.
|
||||||
two. This is equivalent to
|
|
||||||
@smallexample
|
|
||||||
(. + @var{exp} - 1) & ~(@var{exp} - 1)
|
|
||||||
@end smallexample
|
|
||||||
|
|
||||||
@code{ALIGN} doesn't change the value of the location counter---it just
|
@code{ALIGN} doesn't change the value of the location counter---it just
|
||||||
does arithmetic on it. Here is an example which aligns the output
|
does arithmetic on it. Here is an example which aligns the output
|
||||||
@code{.data} section to the next @code{0x2000} byte boundary after the
|
@code{.data} section to the next @code{0x2000} byte boundary after the
|
||||||
|
|
Loading…
Reference in a new issue