Bug 101627 - gcc -g on 2.4.18 kernel compile results in objdump -g error
gcc -g on 2.4.18 kernel compile results in objdump -g error
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: gcc3 (Show other bugs)
9
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-08-04 16:45 EDT by Sam King
Modified: 2007-04-18 12:56 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-08-04 16:49:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Sam King 2003-08-04 16:45:00 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225

Description of problem:
When I added the -g flag to a standard (non-redhat) 2.4.18 kernel makefile and
compiled the kernel, I could not extract the debugging information using
objdump.  Below is the result of running objdump:

[kingst@yukon linux-2.4.18]$ objdump -g vmlinux 

vmlinux:     file format elf32-i386

objdump: vmlinux: no recognized debugging information

Using the exact same procedure, I was able to get the debugging information when
I compiled the same kernel on a redhat 7.3 system (and still using the same
objdump version):



Version-Release number of selected component (if applicable):
gcc-3.2.2-5, binutils-2.13.90.0.18-9

How reproducible:
Always

Steps to Reproduce:
1. add -g to the end of CFLAGS in the main Makefile
2. make xconfig; make dep; make
3. objdump -g vmlinux
    

Actual Results:  [kingst@yukon linux-2.4.18]$ objdump -g vmlinux 

vmlinux:     file format elf32-i386

objdump: vmlinux: no recognized debugging information

Expected Results:  lots of debugging information

Additional info:
Comment 1 Jakub Jelinek 2003-08-04 16:49:38 EDT
gcc 3.x uses a different debugging format (DWARF-2) than gcc 2.96-RH and earlier
used (stabs).
See objdump man page:
       -g
       --debugging
           Display debugging information.  This attempts  to  parse  debugging
           information stored in the file and print it out using a C like syn-
           tax.  Only certain types of debugging information have been  imple-
           mented.  Some other types are supported by readelf -w.

DWARF-2 is indeed supported in readelf only, see man readelf for all the various
debugging dump options.

Note You need to log in before you can comment on or make changes to this bug.