https://sourceware.org/bugzilla/show_bug.cgi?id=32211
Bug ID: 32211 Summary: 2.41 and later doesn't seem to honor the `-z` flag Product: binutils Version: 2.41 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: danmcd at mnx dot io Target Milestone: --- Created attachment 15717 --> https://sourceware.org/bugzilla/attachment.cgi?id=15717&action=edit Test data and script to confirm/deny that -z works. I will attach a .tgz that has sample data, and a simple shell script to confirm/deny that `objdump` will or will not produce output for an all-zeros object. Example run of this script is included here: smartos-build-2023(~/objdump-debug-data)[1]% ./testscript.sh GNU objdump (GNU Binutils) 2.41 Copyright (C) 2023 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. Testing 21.4-libv8_base.a ... ***FAILED*** Testing 23.4-strap-libv8_base.a ... ***FAILED*** smartos-build-2023(~/objdump-debug-data)[0]% ./testscript.sh ~/smartos-live/proto.strap/usr/gnu/bin/gobjdump GNU objdump (GNU Binutils) 2.34 Copyright (C) 2020 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. Testing 21.4-libv8_base.a ... Passed Testing 23.4-strap-libv8_base.a ... Passed smartos-build-2023(~/objdump-debug-data)[0]% This is on SmartOS (an illumos distribution), but I've tested pre-2.41 version on Linux with passing, and I hope to have 2.42 on actual Linux results shortly. -- You are receiving this mail because: You are on the CC list for the bug.