diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-10-09 19:45:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-10-09 19:45:29 +0000 |
commit | 458fc0567b58a90a9fbead52d080d66847979a97 (patch) | |
tree | 7986f0067e5f160140c90e4926f046268ba1731e /ld/ld.1 | |
parent | 961d589322ffa5f67f0353371e6e58fc28e0bcfb (diff) | |
download | gdb-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.1 | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |