[Bug 198696] base system's objdump -g doesn't display any information

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Mar 19 03:04:21 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198696

            Bug ID: 198696
           Summary: base system's objdump -g doesn't display any
                    information
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: lidl at pix.net

On a relatively recent -CURRENT system:

uname -a:
FreeBSD busybox.pix.net 11.0-CURRENT FreeBSD 11.0-CURRENT #19 r280171M: Tue Mar
17 10:55:28 EDT 2015     lidl at busybox.pix.net:/usr/obj/usr/src/sys/BUSYBOX 
amd64

clang -v:
FreeBSD clang version 3.6.0 (tags/RELEASE_360/final 230434) 20150225
Target: x86_64-unknown-freebsd11.0
Thread model: posix

/usr/bin/objdump doesn't display any useful information from a
.o object file compiled with 'clang -g':

lidl at busybox-234: /usr/bin/objdump -v
GNU objdump 2.17.50 [FreeBSD] 2007-07-03
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
lidl at busybox-235: /usr/bin/objdump -g ls.o

ls.o:     file format elf64-x86-64-freebsd

/usr/bin/objdump: ls.o: no recognized debugging information

The latest binutils from /usr/ports, however, does work:

lidl at busybox-236: /usr/local/bin/objdump -v
GNU objdump (GNU Binutils) 2.25
Copyright (C) 2014 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.
lidl at busybox-237: /usr/local/bin/objdump -g ls.o | head

ls.o:     file format elf64-x86-64-freebsd

Contents of the .debug_info section:

  Compilation Unit @ offset 0x0:
   Length:        0x1172 (32-bit)
   Version:       2
   Abbrev Offset: 0x0
   Pointer Size:  8

Is there any hope for getting a working 'objdump -g' in the base system?
Isn't there a 'objdump' in the elf-toolchain?

Trying to use 'llvm-objdump -g ls.o' just spits out a usage message.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list