aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-07-27 11:58:28 +0000
committerAlan Modra <amodra@gmail.com>2003-07-27 11:58:28 +0000
commit7e7d57681b2ef3593d29069fb0b77d7daadc3fad (patch)
tree2398c37f556c404e3b78bd3b2113a1f34f378f36 /ld/ld.texinfo
parent5d35169e36b4fffc737ea015723e034c9efd7906 (diff)
downloadgdb-7e7d57681b2ef3593d29069fb0b77d7daadc3fad.zip
gdb-7e7d57681b2ef3593d29069fb0b77d7daadc3fad.tar.gz
gdb-7e7d57681b2ef3593d29069fb0b77d7daadc3fad.tar.bz2
* ld.texinfo: Typo fixes. Document SUBALIGN.
* ldgram.y (opt_subalign): Add. * ldlex.l (SUBALIGN): Recognize. * ldlang.c (overlay_subalign): New var. (lang_enter_overlay): Add subalign param. (lang_enter_overlay_section): Pass overlay_subalign to lang_enter_output_section_statement. * ldlang.h (lang_enter_overlay): Update.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r--ld/ld.texinfo18
1 files changed, 15 insertions, 3 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index c9691a0..aeeded0 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -1217,7 +1217,7 @@ this option overrides it. @xref{BFD}.
Create a position independent executable. This is currently only supported on
ELF platforms. Position independent executables are similar to shared
libraries in that they are relocated by the dynamic linker to the virtual
-address OS chooses for them (which can varry between invocations), like
+address the OS chooses for them (which can vary between invocations). Like
normal dynamically linked executables they can be executed and symbols
defined in the executable cannot be overridden by shared libraries.
@@ -2686,7 +2686,8 @@ in the first input file. The first section will be at address zero.
The full description of an output section looks like this:
@smallexample
@group
-@var{section} [@var{address}] [(@var{type})] : [AT(@var{lma})]
+@var{section} [@var{address}] [(@var{type})] :
+ [AT(@var{lma})] [SUBALIGN(@var{subsection_align})]
@{
@var{output-section-command}
@var{output-section-command}
@@ -3207,7 +3208,8 @@ We showed above that the full description of an output section looked
like this:
@smallexample
@group
-@var{section} [@var{address}] [(@var{type})] : [AT(@var{lma})]
+@var{section} [@var{address}] [(@var{type})] :
+ [AT(@var{lma})] [SUBALIGN(@var{subsection_align})]
@{
@var{output-section-command}
@var{output-section-command}
@@ -3222,6 +3224,7 @@ remaining section attributes.
@menu
* Output Section Type:: Output section type
* Output Section LMA:: Output section LMA
+* Forced Input Alignment:: Forced Input Alignment
* Output Section Region:: Output section region
* Output Section Phdr:: Output section phdr
* Output Section Fill:: Output section fill
@@ -3329,6 +3332,15 @@ for (dst = &_bstart; dst< &_bend; dst++)
@end group
@end smallexample
+@node Forced Input Alignment
+@subsubsection Forced Input Alignment
+@kindex SUBALIGN(@var{subsection_align})
+@cindex forcing input section alignment
+@cindex input section alignment
+You can force input section alignment within an output section by using
+SUBALIGN. The value specified overrides any alignment given by input
+sections, whether larger or smaller.
+
@node Output Section Region
@subsubsection Output Section Region
@kindex >@var{region}