Missing piece of 2009-01-26 commit
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 9 Feb 2009 14:46:40 +0000 (14:46 +0000)
committerNathan Sidwell <nathan@codesourcery.com>
Mon, 9 Feb 2009 14:46:40 +0000 (14:46 +0000)
* ldlang.c (lang_process): Don't consider relocatable flag when
checking for overlap.

ld/ChangeLog
ld/ldlang.c

index f8f89a093f6132a0304d242a8d423a8f4402ffa9..73020cfcd31603273e21530aab3724bc3d1e7c1f 100644 (file)
@@ -1,3 +1,9 @@
+2009-02-09  Nathan Sidwell  <nathan@codesourcery.com>
+
+       Missing piece of 2009-01-26 commit
+       * ldlang.c (lang_process): Don't consider relocatable flag when
+       checking for overlap.
+
 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
 
        * emulparams/m68kelf.sh: Add newline at end of file.
@@ -45,8 +51,6 @@
 
        * 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.
index 855e7951f4d86ed03445e3d692a05b0378619846..095bb3f0d04a593ccc32e5e8841c35bd738a50c9 100644 (file)
@@ -6225,8 +6225,7 @@ lang_process (void)
   ldemul_finish ();
 
   /* Make sure that the section addresses make sense.  */
-  if (! link_info.relocatable
-      && command_line.check_section_addresses)
+  if (command_line.check_section_addresses)
     lang_check_section_addresses ();
 
   lang_end ();