aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2009-01-26 15:23:39 +0000
committerNathan Sidwell <nathan@codesourcery.com>2009-01-26 15:23:39 +0000
commit02b0b1aa7702634955c7972e33403e1d37ed6602 (patch)
tree4c25d123821c61578076495793848b64924d0067 /ld/lexsup.c
parentee3c0378c3af1a2a248430691635a46663cc9976 (diff)
downloadgdb-02b0b1aa7702634955c7972e33403e1d37ed6602.zip
gdb-02b0b1aa7702634955c7972e33403e1d37ed6602.tar.gz
gdb-02b0b1aa7702634955c7972e33403e1d37ed6602.tar.bz2
* lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
* ld.h (args_type): Make check_section_addresses a char. ldlang.c (lang_process): Don't consider relocatable flag when checking for overlap. * ldmain.c (main): Default check_section_addresses to -1. Check it for relocatable links. * ld.texinfo (--check-sections): Update documentation.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r--ld/lexsup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c
index f9e6b1f..4dcfc3c 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -1411,10 +1411,10 @@ parse_args (unsigned argc, char **argv)
config.split_by_file = 1;
break;
case OPTION_CHECK_SECTIONS:
- command_line.check_section_addresses = TRUE;
+ command_line.check_section_addresses = 1;
break;
case OPTION_NO_CHECK_SECTIONS:
- command_line.check_section_addresses = FALSE;
+ command_line.check_section_addresses = 0;
break;
case OPTION_ACCEPT_UNKNOWN_INPUT_ARCH:
command_line.accept_unknown_input_arch = TRUE;