[PATCH v2] strip: Treat "default" output_target as unspecified

H.J. Lu hjl.tools@gmail.com
Thu Jul 31 03:51:54 GMT 2025


On Wed, Jul 30, 2025 at 8:49 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> On Wed, Jul 30, 2025 at 7:35 PM Alan Modra <amodra@gmail.com> wrote:
> >
> > On Wed, Jul 30, 2025 at 06:49:08PM -0700, H.J. Lu wrote:
> > > On Wed, Jul 30, 2025 at 6:27 PM Alan Modra <amodra@gmail.com> wrote:
> > > > Yes, I typoed that.  The tests need some tweaking as they both fail
> > > > with --enable-targets=all.
> > > >
> > >
> > > Like this?
> >
> > That will do I guess.  It would be nicer to run readelf and check the
> > machine if strip succeeded.
>
> Run readelf uncovered an output_target bug.   "default" output_target
> should be treated as unspecified.   Here is the patch to fix it with tests.
>
> OK for master?

Here is the v2 patch to also cover archive.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0001-strip-Treat-default-output_target-as-unspecified.patch
Type: text/x-patch
Size: 4473 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250730/fcace126/attachment.bin>


More information about the Binutils mailing list