]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* ldlang.c (lang_leave_output_section_statement): Don't copy
authorAlan Modra <amodra@gmail.com>
Mon, 16 May 2011 00:53:46 +0000 (00:53 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 16 May 2011 00:53:46 +0000 (00:53 +0000)
previous lma_region if given address.

ld/ChangeLog
ld/ldlang.c

index 1452b799129b54907089f60fba72dc28cce48aa0..09788f840afd074fd320922e73b1a27341375209 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-16  Alan Modra  <amodra@gmail.com>
+
+       * ldlang.c (lang_leave_output_section_statement): Don't copy
+       previous lma_region if given address.
+
 2011-05-04  Alan Modra  <amodra@gmail.com>
 
        PR ld/12726
index 2f1842ead6f82b1e86705da177ff9c9519e1c968..cba509b84e5b87f64f67b4815874170696f3dd8d 100644 (file)
@@ -6861,11 +6861,13 @@ lang_leave_output_section_statement (fill_type *fill, const char *memspec,
                    current_section->load_base != NULL,
                    current_section->addr_tree != NULL);
 
-  /* If this section has no load region or base, but has the same
+  /* If this section has no load region or base, but uses the same
      region as the previous section, then propagate the previous
      section's load region.  */
 
-  if (!current_section->lma_region && !current_section->load_base
+  if (current_section->lma_region == NULL
+      && current_section->load_base == NULL
+      && current_section->addr_tree == NULL
       && current_section->region == current_section->prev->region)
     current_section->lma_region = current_section->prev->lma_region;