* elfxx-ia64.c (elfNN_ia64_choose_gp): Use rawsize if set.
authorAndreas Schwab <schwab@linux-m68k.org>
Wed, 26 Jul 2006 19:56:16 +0000 (19:56 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Wed, 26 Jul 2006 19:56:16 +0000 (19:56 +0000)
bfd/ChangeLog
bfd/elfxx-ia64.c

index c8400e7fec831d297b444f4c196b131e23384797..0b9613de143755022dd81ecc916d11f19341a280 100644 (file)
@@ -1,3 +1,7 @@
+2006-07-26  Andreas Schwab  <schwab@suse.de>
+
+       * elfxx-ia64.c (elfNN_ia64_choose_gp): Use rawsize if set.
+
 2006-07-26  Alan Modra  <amodra@bigpond.net.au>
 
        * elf.c (elf_modify_segment_map): Delete empty PT_LOAD segments.
index 32dea4c6149629dc5b8eb9c09eb2c3a1264847cc..11bba4e883ce5fcb4c6754b97d8c608f0ab7d397 100644 (file)
@@ -4366,7 +4366,7 @@ elfNN_ia64_choose_gp (abfd, info)
        continue;
 
       lo = os->vma;
-      hi = os->vma + os->size;
+      hi = os->vma + (os->rawsize ? os->rawsize : os->size);
       if (hi < lo)
        hi = (bfd_vma) -1;