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.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ld/ld.h') diff --git a/ld/ld.h b/ld/ld.h index 43a4ba2..3de92cd 100644 --- a/ld/ld.h +++ b/ld/ld.h @@ -167,10 +167,9 @@ typedef struct { search. */ bfd_boolean warn_search_mismatch; - - /* If TRUE (the default) check section addresses, once compute, - fpor overlaps. */ - bfd_boolean check_section_addresses; + /* If non-zero check section addresses, once computed, + for overlaps. Relocatable links only check when this is > 0. */ + signed char check_section_addresses; /* If TRUE allow the linking of input files in an unknown architecture assuming that the user knows what they are doing. This was the old -- cgit v1.1