diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-09-28 00:34:21 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-09-28 00:34:21 +0000 |
commit | bbf115d3ccf10d0227211a417e2c8c91259bf6b9 (patch) | |
tree | f5370f1515860fccdb383b546c1d834c61bb5efb /ld/ld.texinfo | |
parent | f4b7fbb68045503ec0d1a3088c01be20aaebdd37 (diff) | |
download | gdb-bbf115d3ccf10d0227211a417e2c8c91259bf6b9.zip gdb-bbf115d3ccf10d0227211a417e2c8c91259bf6b9.tar.gz gdb-bbf115d3ccf10d0227211a417e2c8c91259bf6b9.tar.bz2 |
2005-09-27 H.J. Lu <hongjiu.lu@intel.com>
* ld.texinfo (ALIGN): Document it as forcing output section
alignment.
* ldgram.y (ALIGN): Support it for forcing output section
alignment.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r-- | ld/ld.texinfo | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo index 2099971..a95a329 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -3065,7 +3065,7 @@ The full description of an output section looks like this: @smallexample @group @var{section} [@var{address}] [(@var{type})] : - [AT(@var{lma})] [SUBALIGN(@var{subsection_align})] + [AT(@var{lma})] [ALIGN(@var{section_align})] [SUBALIGN(@var{subsection_align})] @{ @var{output-section-command} @var{output-section-command} @@ -3641,7 +3641,7 @@ like this: @smallexample @group @var{section} [@var{address}] [(@var{type})] : - [AT(@var{lma})] [SUBALIGN(@var{subsection_align})] + [AT(@var{lma})] [ALIGN(@var{section_align})] [SUBALIGN(@var{subsection_align})] @{ @var{output-section-command} @var{output-section-command} @@ -3656,6 +3656,7 @@ remaining section attributes. @menu * Output Section Type:: Output section type * Output Section LMA:: Output section LMA +* Forced Output Alignment:: Forced Output Alignment * Forced Input Alignment:: Forced Input Alignment * Output Section Region:: Output section region * Output Section Phdr:: Output section phdr @@ -3769,6 +3770,15 @@ for (dst = &_bstart; dst< &_bend; dst++) @end group @end smallexample +@node Forced Output Alignment +@subsubsection Forced Output Alignment +@kindex ALIGN(@var{section_align}) +@cindex forcing output section alignment +@cindex output section alignment +You can force an output section alignment by using ALIGN. The value +specified overrides any alignment given by input sections, whether +larger or smaller. + @node Forced Input Alignment @subsubsection Forced Input Alignment @kindex SUBALIGN(@var{subsection_align}) |