From 458fc0567b58a90a9fbead52d080d66847979a97 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 9 Oct 1996 19:45:29 +0000 Subject: * 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. --- ld/ld.1 | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ld/ld.1') 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 -- cgit v1.1