From 02b0b1aa7702634955c7972e33403e1d37ed6602 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Mon, 26 Jan 2009 15:23:39 +0000 Subject: * 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. --- ld/ld.texinfo | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ld/ld.texinfo') diff --git a/ld/ld.texinfo b/ld/ld.texinfo index 3543505..1d90989 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -1205,6 +1205,9 @@ perform this check, and if it finds any overlaps it will produce suitable error messages. The linker does know about, and does make allowances for sections in overlays. The default behaviour can be restored by using the command line switch @option{--check-sections}. +Section overlap is not usually checked for relocatable links. You can +force checking in that case by using the @option{--check-sections} +option. @cindex cross reference table @kindex --cref -- cgit v1.1