aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.1
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-10-09 19:45:29 +0000
committerIan Lance Taylor <ian@airs.com>1996-10-09 19:45:29 +0000
commit458fc0567b58a90a9fbead52d080d66847979a97 (patch)
tree7986f0067e5f160140c90e4926f046268ba1731e /ld/ld.1
parent961d589322ffa5f67f0353371e6e58fc28e0bcfb (diff)
downloadgdb-458fc0567b58a90a9fbead52d080d66847979a97.zip
gdb-458fc0567b58a90a9fbead52d080d66847979a97.tar.gz
gdb-458fc0567b58a90a9fbead52d080d66847979a97.tar.bz2
* ld.h (ld_config_type): Add warn_section_align field.
* lexsup.c (OPTION_WARN_SECTION_ALIGN): Define. (ld_options): Add --warn-section-align. (parse_args): Handle --warn-section-align. * ldlang.c (lang_size_sections): If warn_section_align, warn if the start of a section changes due to alignment. * ld.texinfo, ld.1: Document --warn-section-align. * ld.texinfo: Change some single dashes to double dashes. PR 10739.
Diffstat (limited to 'ld/ld.1')
-rw-r--r--ld/ld.19
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/ld.1 b/ld/ld.1
index ef3633e..10fcf7e 100644
--- a/ld/ld.1
+++ b/ld/ld.1
@@ -123,6 +123,7 @@ ld \- the GNU linker
.RB "[\|" \-warn\-constructors "\|]"
.RB "[\|" \-warn\-multiple\-gp "\|]"
.RB "[\|" \-warn\-once "\|]"
+.RB "[\|" \-warn\-section\-align "\|]"
.RB "[\|" \-\-whole\-archive "\|]"
.RB "[\|" \-\-no\-whole\-archive "\|]"
.RB "[\|" "\-\-wrap\ "\c
@@ -932,6 +933,14 @@ Only warn once for each undefined symbol, rather than once per module
which refers to it.
.TP
+.B \-warn\-section\-align
+Warn if the address of an output section is changed because of
+alignment. Typically, the alignment will be set by an input section.
+The address will only be changed if it not explicitly specified; that
+is, if the SECTIONS command does not specify a start address for the
+section.
+
+.TP
.B \-\-whole\-archive
For each archive mentioned on the command line after the
.B \-\-whole\-archive