mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-11 13:02:10 +08:00
bfd/
* xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating max_contents_size, only consider sections whose contents must be swapped in.
This commit is contained in:
parent
de0a02497e
commit
9ea2b9423f
@ -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>
|
2010-02-09 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
|
* elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
|
||||||
|
@ -5872,10 +5872,13 @@ _bfd_xcoff_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
|
|||||||
|
|
||||||
o->reloc_count += sec->reloc_count;
|
o->reloc_count += sec->reloc_count;
|
||||||
|
|
||||||
if (sec->rawsize > max_contents_size)
|
if ((sec->flags & SEC_IN_MEMORY) == 0)
|
||||||
max_contents_size = sec->rawsize;
|
{
|
||||||
if (sec->size > max_contents_size)
|
if (sec->rawsize > max_contents_size)
|
||||||
max_contents_size = sec->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
|
if (coff_section_data (sec->owner, sec) != NULL
|
||||||
&& xcoff_section_data (sec->owner, sec) != NULL
|
&& xcoff_section_data (sec->owner, sec) != NULL
|
||||||
&& (xcoff_section_data (sec->owner, sec)->lineno_count
|
&& (xcoff_section_data (sec->owner, sec)->lineno_count
|
||||||
|
Loading…
Reference in New Issue
Block a user