PATCH: Don't display bits only used for BFD in abfd->flags.
Alan Modra
amodra@gmail.com
Fri Nov 5 12:04:00 GMT 2010
On Fri, Nov 05, 2010 at 04:45:15AM -0700, H.J. Lu wrote:
> On Thu, Nov 4, 2010 at 11:09 PM, Alan Modra <amodra@gmail.com> wrote:
> > On Wed, Nov 03, 2010 at 07:46:53AM -0700, H.J. Lu wrote:
> >> On Wed, Nov 3, 2010 at 7:40 AM, Alan Modra <amodra@gmail.com> wrote:
> >> >[about orphan compressed debug sections]
> >> > A possible fix is to rename input sections when decompressing.
> >>
> >> I tried it, which lead to other problems. People will run into this problem
> >> only if they compress debug sections. Â If they do that, they should
> >> update their linker scripts.
> >
> > The only other problems I see is the need to remove some asserts that
> > are no longer true. Â Was there something else that bothered you?
> >
> > bfd/
> > Â Â Â Â * elf.c (_bfd_elf_make_section_from_shdr): Rename input sections
> > Â Â Â Â when compressing or decompressing. Â Don't assert name match.
> > Â Â Â Â * elf64-hppa.c (get_reloc_section): Don't assert name match.
> > Â Â Â Â * elfxx-ia64.c (get_reloc_section): Likewise.
> > binutils/
> > Â Â Â Â * objcopy.c (copy_main): No need to rename sections when compressing
> > Â Â Â Â or decompressing.
> > binutils/testsuite/
> > Â Â Â Â * binutils-all/objdump.W: Adjust expected result for debug section
> > Â Â Â Â rename.
> >
>
> I don't remember the details. Do objdump and readelf show the same
> section name on the same section?
objdump shows the converted name when displaying decompressed debug
section contents, hence the objdump.W change. I see this as a
feature. ;-)
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list