diff options
author | Alan Modra <amodra@gmail.com> | 2011-04-11 04:08:13 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2011-04-11 04:08:13 +0000 |
commit | e57278ef9d811d78f6db04a11ea4810ca6ae2575 (patch) | |
tree | 5d4cef8d28e53b1531921e76c259b68618281c52 /bfd/elf32-rx.c | |
parent | 6edcf5b8e0d9b18f11019d87bf217924abbe3322 (diff) | |
download | gdb-e57278ef9d811d78f6db04a11ea4810ca6ae2575.zip gdb-e57278ef9d811d78f6db04a11ea4810ca6ae2575.tar.gz gdb-e57278ef9d811d78f6db04a11ea4810ca6ae2575.tar.bz2 |
* bfd-in.h (bfd_get_section_limit): Don't use rawsize with output
sections.
* libbfd.c (_bfd_generic_get_section_contents): Likewise.
(_bfd_generic_get_section_contents_in_window): Likewise.
* section.c (bfd_get_section_contents): Likewise.
* compress.c (bfd_get_full_section_contents): Likewise.
* elf32-rx.c (rx_final_link): Ignore rawsize.
* elf32-microblaze.c (microblaze_elf_relocate_section): Use correct
bfd with bfd_get_section_limit.
* elfxx-ia64.c (elfNN_ia64_choose_gp): Add "final" parameter. Use
os->size during final link. Update callers.
* bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/elf32-rx.c')
-rw-r--r-- | bfd/elf32-rx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/elf32-rx.c b/bfd/elf32-rx.c index 0a5e12c..55f2eaa 100644 --- a/bfd/elf32-rx.c +++ b/bfd/elf32-rx.c @@ -1,5 +1,5 @@ /* Renesas RX specific support for 32-bit ELF. - Copyright (C) 2008, 2009, 2010 + Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -3305,13 +3305,12 @@ rx_final_link (bfd * abfd, struct bfd_link_info * info) #endif if (o->flags & SEC_CODE && bfd_big_endian (abfd) - && (o->size % 4 || o->rawsize % 4)) + && o->size % 4) { #ifdef DJDEBUG fprintf (stderr, "adjusting...\n"); #endif o->size += 4 - (o->size % 4); - o->rawsize += 4 - (o->rawsize % 4); } } |