mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
PR 10474
* emultempl/ppc32elf.em (ppc_before_allocation): Test rawsize, not size, after lang_reset_memory_regions.
This commit is contained in:
parent
a9585d22b5
commit
07088e9587
@ -1,3 +1,9 @@
|
||||
2009-08-04 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
PR 10474
|
||||
* emultempl/ppc32elf.em (ppc_before_allocation): Test rawsize,
|
||||
not size, after lang_reset_memory_regions.
|
||||
|
||||
2009-07-30 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* emulparams/elf32ppc.sh (PLT): Don't include ".iplt".
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user