bfd/
authorRichard Sandiford <rdsandiford@googlemail.com>
Mon, 8 Feb 2010 20:00:54 +0000 (20:00 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Mon, 8 Feb 2010 20:00:54 +0000 (20:00 +0000)
* xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
max_contents_size, only consider sections whose contents must
be swapped in.

bfd/ChangeLog
bfd/xcofflink.c

index 45c57849346129bdaadc249ed1c34fb069331004..7aecf5122305a437a206f6630d6f2bb87d808152 100644 (file)
@@ -1,3 +1,9 @@
+2010-02-08  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+       * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
+       max_contents_size, only consider sections whose contents must
+       be swapped in.
+
 2010-02-09  Alan Modra  <amodra@gmail.com>
 
        * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
index 118fcf2e29528321b2f545c09fdefc7a24cfd8f1..8198e93c2050533d206359e557e234857ed1a9c8 100644 (file)
@@ -5872,10 +5872,13 @@ _bfd_xcoff_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
 
              o->reloc_count += sec->reloc_count;
 
-             if (sec->rawsize > max_contents_size)
-               max_contents_size = sec->rawsize;
-             if (sec->size > max_contents_size)
-               max_contents_size = sec->size;
+             if ((sec->flags & SEC_IN_MEMORY) == 0)
+               {
+                 if (sec->rawsize > max_contents_size)
+                   max_contents_size = sec->rawsize;
+                 if (sec->size > max_contents_size)
+                   max_contents_size = sec->size;
+               }
              if (coff_section_data (sec->owner, sec) != NULL
                  && xcoff_section_data (sec->owner, sec) != NULL
                  && (xcoff_section_data (sec->owner, sec)->lineno_count
This page took 0.03137 seconds and 4 git commands to generate.