Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Bug 229046] [meta] objdump removal tracking PR

1 view
Skip to first unread message

bugzilla...@freebsd.org

unread,
Jun 15, 2018, 12:08:33 PM6/15/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

Bug ID: 229046
Summary: [meta] objdump removal tracking PR
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bu...@FreeBSD.org
Reporter: ema...@freebsd.org
Depends on: 212319

An ongoing project in FreeBSD is the migration to modern, permissively licensed
components for the tool chain, which includes moving away from the obsolete
binutils components still in the base system.

This PR tracks outstanding issues in removing GNU objdump 2.17.50 from the base
system.


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212319
[Bug 212319] [exp-run] test build without /usr/bin/objdump
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebs...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs...@freebsd.org"

bugzilla...@freebsd.org

unread,
Jun 15, 2018, 12:16:42 PM6/15/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

--- Comment #1 from commi...@freebsd.org ---
A commit references this bug:

Author: emaste
Date: Fri Jun 15 16:14:42 UTC 2018
New revision: 335209
URL: https://svnweb.freebsd.org/changeset/base/335209

Log:
elf.5: add readelf cross-reference

objdump is sometimes used in cases where readelf is more appropriate,
but the obsolete GNU objdump we have in the base system will be removed
in the future.

.Xr readelf from elf.5 to improve the odds the more appropriate tool
will be found.

PR: 229046
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

Changes:
head/share/man/man5/elf.5

bugzilla...@freebsd.org

unread,
Jun 15, 2018, 12:21:29 PM6/15/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

--- Comment #2 from commi...@freebsd.org ---
A commit references this bug:

Author: emaste
Date: Fri Jun 15 16:18:40 UTC 2018
New revision: 335210
URL: https://svnweb.freebsd.org/changeset/base/335210

Log:
Remove objcopy from BINUTILS option descriptions

As of r306649 objcopy is always ELF Tool Chain's elfcopy; binutils
objcopy is never used.

PR: 229046
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

Changes:
head/tools/build/options/WITHOUT_BINUTILS
head/tools/build/options/WITHOUT_BINUTILS_BOOTSTRAP
head/tools/build/options/WITH_BINUTILS
head/tools/build/options/WITH_BINUTILS_BOOTSTRAP

bugzilla...@freebsd.org

unread,
Jun 15, 2018, 12:24:55 PM6/15/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

--- Comment #3 from Ed Maste <ema...@freebsd.org> ---
release/picobsd/build/picobsd
used to find lib depends

i="`objdump -x ${tmp} | \
awk '$1 == "NEEDED" { print $2 }' | sort | uniq | tr
'\n' ' '`"

share/man/man5/elf.5

.Xr objdump 1 ,

sys/conf/kern.pre.mk
seems to be a objcopy typo

# Architecture and output format arguments for objdump to convert image to
# object file

tools/debugscripts/kld_deb.py

j = popen2.popen4('objdump --section-headers "%s" | grep "\.text"' %
p)[0].read().strip().split()

tools/tools/shlib-compat/shlib-compat.py

usr.bin/ldd/sods.c

if (IS_ELF(*(const Elf32_Ehdr*) align_struct(file_base))) {
warnx("%s: this is an ELF program; use objdump to examine", fname);

usr.sbin/asf/asf.c

snprintf(ocbuf, sizeof(ocbuf),
"/usr/bin/objdump --section-headers %s", path);

usr.sbin/pmcannotate/pmcannotate.8
usr.sbin/pmcannotate/pmcannotate.c

bugzilla...@freebsd.org

unread,
Jun 15, 2018, 12:31:00 PM6/15/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

--- Comment #4 from commi...@freebsd.org ---
A commit references this bug:

Author: emaste
Date: Fri Jun 15 16:28:50 UTC 2018
New revision: 335213
URL: https://svnweb.freebsd.org/changeset/base/335213

Log:
ldd: reference readelf instead of objdump in warning message

We have an obsolete GNU objdump 2.17.50 in the base system, which will
be removed in the future. Suggest readelf(1) for examining ELF files
instead; for most use cases it is the preferred tool anyhow.

PR: 229046
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

Changes:
head/usr.bin/ldd/sods.c

bugzilla...@freebsd.org

unread,
Jun 15, 2018, 12:34:01 PM6/15/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

--- Comment #5 from commi...@freebsd.org ---
A commit references this bug:

Author: emaste
Date: Fri Jun 15 16:32:18 UTC 2018
New revision: 335214
URL: https://svnweb.freebsd.org/changeset/base/335214

Log:
Correct kern.pre.mk comment: objcopy, not objdump, copies objects.

PR: 229046
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

Changes:
head/sys/conf/kern.pre.mk

bugzilla...@freebsd.org

unread,
Jun 15, 2018, 12:35:11 PM6/15/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

Ed Maste <ema...@freebsd.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://bugs.freebsd.org/bu
| |gzilla/show_bug.cgi?id=1986
| |96,
| |https://bugs.freebsd.org/bu
| |gzilla/show_bug.cgi?id=2183
| |87

bugzilla...@freebsd.org

unread,
Jun 15, 2018, 12:44:37 PM6/15/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

Ed Maste <ema...@freebsd.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |j...@FreeBSD.org

--- Comment #6 from Ed Maste <ema...@freebsd.org> ---
jmg@, could you update tools/debugscripts/kld_deb.py to use readelf instead of
objdump?

bugzilla...@freebsd.org

unread,
Jun 15, 2018, 12:47:08 PM6/15/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

Ed Maste <ema...@freebsd.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |gl...@FreeBSD.org

--- Comment #7 from Ed Maste <ema...@freebsd.org> ---
gleb@, could you update tools/tools/shlib-compat/shlib-compat.py to use readelf
instead of objdump?

bugzilla...@freebsd.org

unread,
Jun 15, 2018, 12:50:28 PM6/15/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

--- Comment #8 from Ed Maste <ema...@freebsd.org> ---
jhb@ points out that both kld_deb.py and asf are rendered obsolete by kgdb
internally handling FreeBSD kernel module state.

bugzilla...@freebsd.org

unread,
Jun 15, 2018, 12:59:56 PM6/15/18
to

bugzilla...@freebsd.org

unread,
Jun 15, 2018, 1:01:57 PM6/15/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

--- Comment #10 from Ed Maste <ema...@freebsd.org> ---
objdump disconnection code review: https://reviews.freebsd.org/D7338
objdump deprecation notice review: https://reviews.freebsd.org/D13881

bugzilla...@freebsd.org

unread,
Jun 15, 2018, 1:06:35 PM6/15/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

--- Comment #11 from commi...@freebsd.org ---
A commit references this bug:

Author: emaste
Date: Fri Jun 15 17:03:49 UTC 2018
New revision: 335217
URL: https://svnweb.freebsd.org/changeset/base/335217

Log:
Add deprecation notice to objdump man page

PR: 229046
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D13881

Changes:
head/contrib/binutils/binutils/doc/binutils.texi

bugzilla...@freebsd.org

unread,
Jun 15, 2018, 1:15:45 PM6/15/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

Ed Maste <ema...@freebsd.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Depends on| |229049


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229049
[Bug 229049] Mk/bsd.port.mk relies on to-be-removed objdump

bugzilla...@freebsd.org

unread,
Jun 15, 2018, 1:40:18 PM6/15/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

--- Comment #12 from commi...@freebsd.org ---
A commit references this bug:

Author: emaste
Date: Fri Jun 15 17:38:08 UTC 2018
New revision: 335221
URL: https://svnweb.freebsd.org/changeset/base/335221

Log:
Add deprecation notice in asf.8

PR: 229046
Reviewed by: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

Changes:
head/usr.sbin/asf/asf.8

bugzilla...@freebsd.org

unread,
Jun 15, 2018, 1:46:03 PM6/15/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

--- Comment #13 from commi...@freebsd.org ---
A commit references this bug:

Author: emaste
Date: Fri Jun 15 17:44:22 UTC 2018
New revision: 335222
URL: https://svnweb.freebsd.org/changeset/base/335222

Log:
Remove obsolete asf(8)

kgdb now handles kernel module state internally, so the asf tool serves
no purpose.

PR: 229046
Reviewed by: brooks
Relnotes: yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D15827

Changes:
head/ObsoleteFiles.inc
head/targets/pseudo/userland/Makefile.depend
head/usr.sbin/Makefile.amd64
head/usr.sbin/Makefile.i386
head/usr.sbin/asf/

bugzilla...@freebsd.org

unread,
Jun 21, 2018, 8:28:59 PM6/21/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

--- Comment #14 from commi...@freebsd.org ---
A commit references this bug:

Author: emaste
Date: Fri Jun 22 00:27:32 UTC 2018
New revision: 335518
URL: https://svnweb.freebsd.org/changeset/base/335518

Log:
MFC r335221: Add deprecation notice in asf.8

PR: 229046
Sponsored by: The FreeBSD Foundation

Changes:
_U stable/11/
stable/11/usr.sbin/asf/asf.8

bugzilla...@freebsd.org

unread,
Jun 21, 2018, 8:31:13 PM6/21/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

--- Comment #15 from commi...@freebsd.org ---
A commit references this bug:

Author: emaste
Date: Fri Jun 22 00:28:28 UTC 2018
New revision: 335519
URL: https://svnweb.freebsd.org/changeset/base/335519

Log:
MFC r335214: Correct kern.pre.mk comment: objcopy copies objects.

(Not objdump.)

PR: 229046
Sponsored by: The FreeBSD Foundation

Changes:
_U stable/11/
stable/11/sys/conf/kern.pre.mk

bugzilla...@freebsd.org

unread,
Jun 21, 2018, 8:32:29 PM6/21/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

--- Comment #16 from commi...@freebsd.org ---
A commit references this bug:

Author: emaste
Date: Fri Jun 22 00:29:29 UTC 2018
New revision: 335520
URL: https://svnweb.freebsd.org/changeset/base/335520

Log:
MFC r335209: elf.5: add readelf cross-reference

objdump is sometimes used in cases where readelf is more appropriate,
but the obsolete GNU objdump we have in the base system will be removed
in the future.

.Xr readelf from elf.5 to improve the odds the more appropriate tool
will be found.

PR: 229046
Sponsored by: The FreeBSD Foundation

Changes:
_U stable/11/
stable/11/share/man/man5/elf.5

bugzilla...@freebsd.org

unread,
Jun 21, 2018, 8:32:36 PM6/21/18
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229046

--- Comment #17 from commi...@freebsd.org ---
A commit references this bug:

Author: emaste
Date: Fri Jun 22 00:30:25 UTC 2018
New revision: 335521
URL: https://svnweb.freebsd.org/changeset/base/335521

Log:
MFC r335213: ldd: reference readelf instead of objdump in warning message

We have an obsolete GNU objdump 2.17.50 in the base system, which will
be removed in the future. Suggest readelf(1) for examining ELF files
instead; for most use cases it is the preferred tool anyhow.

PR: 229046
Sponsored by: The FreeBSD Foundation

Changes:
_U stable/11/
stable/11/usr.bin/ldd/sods.c
0 new messages