diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2009-01-26 15:23:39 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2009-01-26 15:23:39 +0000 |
commit | 02b0b1aa7702634955c7972e33403e1d37ed6602 (patch) | |
tree | 4c25d123821c61578076495793848b64924d0067 /ld/ldmain.c | |
parent | ee3c0378c3af1a2a248430691635a46663cc9976 (diff) | |
download | gdb-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/ldmain.c')
-rw-r--r-- | ld/ldmain.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c index 7060587..85b9c2b 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -251,7 +251,7 @@ main (int argc, char **argv) command_line.warn_mismatch = TRUE; command_line.warn_search_mismatch = TRUE; - command_line.check_section_addresses = TRUE; + command_line.check_section_addresses = -1; /* We initialize DEMANGLING based on the environment variable COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the @@ -292,6 +292,8 @@ main (int argc, char **argv) if (link_info.relocatable) { + if (command_line.check_section_addresses < 0) + command_line.check_section_addresses = 0; if (command_line.relax) einfo (_("%P%F: --relax and -r may not be used together\n")); if (link_info.shared) |