This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ARM mapping symbols and --strip-unneeded
- From: Nick Clifton <nickc at redhat dot com>
- To: Thomas Preudhomme <thomas dot preudhomme at foss dot arm dot com>, binutils at sourceware dot org
- Cc: "Richard Earnshaw (lists)" <Richard dot Earnshaw at arm dot com>, Michael Weiser <michael at weiser dot dinsnail dot net>
- Date: Fri, 1 Jul 2016 10:39:30 +0100
- Subject: Re: ARM mapping symbols and --strip-unneeded
- Authentication-results: sourceware.org; auth=none
- References: <20160626221336 dot GB1916 at weiser dot dinsnail dot net> <577132D2 dot 9090903 at arm dot com> <1aa007dc-68eb-2d6f-d731-561564a1e3da at redhat dot com> <1726067 dot 4bXWhcsQMF at e108577-lin>
Hi Thomas,
> Since your commit fca2a38fdb391f810e309a12d5279047d4edac34 the binutils test
> "strip without global symbol" started to fail for arm-none-eabi targets.
Sorry about that. I had tested the patch, but only an isolated binutils build.
This particular test needs an ARM compiler to be present, which was why I did
not detect the problem before.
I have checked in a simple fix that marks the test as an expected failure for
the ARM and AArch64 toolchains. The issue is that the test expects all global
symbols to be stripped from an object file, but the patch ensures that mapping
symbols remain, thus invalidating the test.
Cheers
Nick
binutils/ChangeLog
2016-07-01 Nick Clifton <nickc@redhat.com>
* testsuite/binutils-all/objcopy.exp
(objcopy_test_without_global_symbol): Expect this test to fail on
the AArch64 and ARM targets, since they preserve their mapping
symbols.