This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Patch,AVR]: Fix PR13697: Wrong symbols with --gc-sections
- From: Alan Modra <amodra at gmail dot com>
- To: Georg-Johann Lay <avr at gjlay dot de>
- Cc: Hans-Peter Nilsson <hp at bitrange dot com>, binutils at sourceware dot org, Denis Chertykov <chertykov at gmail dot com>, Marek Michalkiewicz <marekm at amelek dot gda dot pl>, Eric Weddington <eric dot weddington at atmel dot com>
- Date: Tue, 29 May 2012 17:00:54 +0930
- Subject: Re: [Patch,AVR]: Fix PR13697: Wrong symbols with --gc-sections
- References: <4FC34A3D.9070300@gjlay.de> <alpine.BSF.2.00.1205281221400.98101@dair.pair.com> <4FC46CC5.4050301@gjlay.de>
On Tue, May 29, 2012 at 08:29:25AM +0200, Georg-Johann Lay wrote:
> *(.init0) /* Start here after reset. */
> KEEP (*(.init0))
> *(.init1)
> KEEP (*(.init1))
>
> and many others. So all this in the avr ls script is plain wrong?
No, it's just unnecessary. Duplicating the input section pattern
won't cause any harm except to slightly slow down the linker.
--
Alan Modra
Australia Development Lab, IBM