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: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Georg-Johann Lay <avr at gjlay dot de>
- Cc: 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 04:05:11 -0400 (EDT)
- 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, 29 May 2012, Georg-Johann Lay wrote:
> Hans-Peter Nilsson schrieb:
> > Try without --gc-sections and gc:able .data.
>
> er... sorry, would you outline this? I searched for "gc:able"
> documentation but with no avail.
JFTR, I meant "add some unused (garbage-collectable) .data to
test if it's added twice when you don't use --gc-sections", but
Alan already pointed out that it isn't.
> > Though, adding a symbol should do it, at least for a corrected
> > linker.
>
> You mean adding a symbol to .data by letting the compiler add a symbol
> in .data for each module?
No, I mean add a symbol in the linker script, like
${RELOCATING+ ___data_start_reserved = .) ; }
(i.e. another one like there is, but without the PROVIDE decoration).
brgds, H-P