This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
linker generated "subsections"
- From: Michael Hennebry <hennebry at web dot cs dot ndsu dot nodak dot edu>
- To: binutils at sourceware dot org
- Date: Thu, 29 Jan 2009 15:36:14 -0600 (CST)
- Subject: linker generated "subsections"
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."