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.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to