This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: linker generated "subsections"
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Michael Hennebry <hennebry at web dot cs dot ndsu dot nodak dot edu>
- Cc: binutils at sourceware dot org
- Date: Thu, 29 Jan 2009 13:44:03 -0800
- Subject: Re: linker generated "subsections"
- References: <alpine.DEB.1.00.0901291524030.12342@mail.cs.ndsu.nodak.edu>
Is this
http://www.sourceware.org/bugzilla/show_bug.cgi?id=349
H.J.
On Thu, Jan 29, 2009 at 1:36 PM, Michael Hennebry
<hennebry@web.cs.ndsu.nodak.edu> wrote:
> avr-ld will mangle the names of user-named sections.
> If I try to name a section "fred",
> code in the first file to use that section name
> will be put in section fred.
> Code in the subsequent files will be put
> in section fred.1, fred.2 and so forth.
> When I first encountered this,
> it defeated my effort to make a multi-file bootloader.
>
> Where is the documentation on this?
> On this matter, google has not been my friend.
>
> I can't even find any documentation that says it will do that,
> much less how to fix it.
>
> C:\ATMel_PROJ\backlight\image\build>avr-ld --version
> GNU ld (GNU Binutils) 2.18 (WinAVR 20080610)
> Copyright 2007 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License version 3 or (at your option) a later
> version.
> This program has absolutely no warranty.
>
> --
> Michael hennebry@web.cs.ndsu.NoDak.edu
> "Pessimist: The glass is half empty.
> Optimist: The glass is half full.
> Engineer: The glass is twice as big as it needs to be."
>
--
H.J.