[Top][All Lists]

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

[Bug binutils/4030] New: objdump ignores .gnu_debuglink

From: cebbert at redhat dot com
Subject: [Bug binutils/4030] New: objdump ignores .gnu_debuglink
Date: 12 Feb 2007 19:53:18 -0000

objdump does not use the .gnu_debuglink information to
find debug information for a stripped executable. This
means objdump -l does not produce line numbers when
disassembling even though the information is available.

$ gcc -g -o forkfork forkfork.c
$ objcopy --only-keep-debug forkfork forkfork.dbg
$ strip forkfork
$ objcopy --add-gnu-debuglink=forkfork.dbg forkfork
$ objdump -h forkfork

forkfork:     file format elf32-i386

Idx Name          Size      VMA       LMA       File off  Algn
 24 .gnu_debuglink 00000014  00000000  00000000  000006f0  2**0
                  CONTENTS, READONLY
$ objdump -l forkfork
[no line numbers in disassembled main()]
$ objdump --version
GNU objdump 20061020

           Summary: objdump ignores .gnu_debuglink
           Product: binutils
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: cebbert at redhat dot com
                CC: bug-binutils at gnu dot org
  GCC host triplet: i386-redhat-linux


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

reply via email to

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