This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Don't display bits only used for BFD in abfd->flags.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]