This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ARM mapping symbols and --strip-unneeded
- From: Thomas Preudhomme <thomas dot preudhomme at foss dot arm dot com>
- To: binutils at sourceware dot org
- Cc: Nick Clifton <nickc at redhat dot com>, "Richard Earnshaw (lists)" <Richard dot Earnshaw at arm dot com>, Michael Weiser <michael at weiser dot dinsnail dot net>
- Date: Thu, 30 Jun 2016 18:53:03 +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>
On Tuesday 28 June 2016 13:22:38 Nick Clifton wrote:
> Hi Guys,
Hi Nick,
>
> On 27/06/16 15:06, Richard Earnshaw (lists) wrote:
> > And potentially for little-endian binaries as well. For example, they
> > might sometimes be needed to insert correct interworking veneers.
>
> Agreed - so this is what I have checked in. It makes sure that "strip
> --strip-unneeded" will not remove mapping symbols from any ARM object
> file (little endian or big endian), whilst still allowing them to be
> removed from executables and shared libraries.
Since your commit fca2a38fdb391f810e309a12d5279047d4edac34 the binutils test
"strip without global symbol" started to fail for arm-none-eabi targets. I get
the following output in the logs:
tmpdir/pr19547.o: file format elf32-littlearm^M
^M
SYMBOL TABLE:^M
00000000 l d .text 00000000 .text^M
00000000 l d .data 00000000 .data^M
00000000 l d .bss 00000000 .bss^M
00000000 l d .comment 00000000 .comment^M
00000000 l d .ARM.attributes 00000000 .ARM.attributes^M
^M
^M
tmpdir/pr19547.o: file format elf32-littlearm
SYMBOL TABLE:
00000000 l d .text 00000000 .text
00000000 l d .data 00000000 .data
00000000 l d .bss 00000000 .bss
00000000 l d .comment 00000000 .comment
00000000 l d .ARM.attributes 00000000 .ARM.attributes
My apologize if this has already been reported but I skimmed quickly through
the thread and haven't found any mentions of testsuite regression.
Best regards,
Thomas