aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-08-04 08:15:24 +0000
committerAlan Modra <amodra@gmail.com>2009-08-04 08:15:24 +0000
commit07088e95873628decec7b00b769486e6252873b9 (patch)
tree3056559e9f81a98cb3022aa0e9e55459a09600c3 /ld/emultempl
parenta9585d22b53bfd23847a70cb13ebdd3e300886ae (diff)
downloadgdb-07088e95873628decec7b00b769486e6252873b9.zip
gdb-07088e95873628decec7b00b769486e6252873b9.tar.gz
gdb-07088e95873628decec7b00b769486e6252873b9.tar.bz2
PR 10474
* emultempl/ppc32elf.em (ppc_before_allocation): Test rawsize, not size, after lang_reset_memory_regions.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/ppc32elf.em6
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/emultempl/ppc32elf.em b/ld/emultempl/ppc32elf.em
index b801df8..9918a48 100644
--- a/ld/emultempl/ppc32elf.em
+++ b/ld/emultempl/ppc32elf.em
@@ -136,12 +136,12 @@ ppc_before_allocation (void)
{
if ((o->flags & (SEC_ALLOC | SEC_CODE)) != (SEC_ALLOC | SEC_CODE))
continue;
- if (o->size == 0)
+ if (o->rawsize == 0)
continue;
if (low > o->vma)
low = o->vma;
- if (high < o->vma + o->size - 1)
- high = o->vma + o->size - 1;
+ if (high < o->vma + o->rawsize - 1)
+ high = o->vma + o->rawsize - 1;
}
if (high > low && high - low > (1 << 25) - 1)
command_line.relax = TRUE;