bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/13560] DWARF2 .debug_info section not found if placed afte


From: nickc at redhat dot com
Subject: [Bug binutils/13560] DWARF2 .debug_info section not found if placed after .debug_line and .debug_abbrev sections
Date: Fri, 06 Jan 2012 11:19:45 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13560

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |nickc at redhat dot com
         Resolution|                            |INVALID

--- Comment #1 from Nick Clifton <nickc at redhat dot com> 2012-01-06 11:19:45 
UTC ---
Hi Lionel,

  The problem is that there are references (in relocations) from the .text
section to the .debug_info section.  Hence it is not possible to strip out the
debug section but leave the text/data sections:

  % objdump -r test.o
  test.o:     file format elf32-powerpc

  RELOCATION RECORDS FOR [.text]:
  OFFSET   TYPE              VALUE 
  00000000 R_PPC_NONE        .debug_info
  00000000 R_PPC_NONE        .debug_line
  00000000 R_PPC_NONE        .debug_frame+0x00000010
  00000026 R_PPC_ADDR16_HA   callee
  [...]

I do not know why the diab compiler has put these relocations in the .text
section, but they are there and that is why strip will not work.

Cheers
  Nick

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]