linker generated "subsections"

Michael Hennebry hennebry@web.cs.ndsu.nodak.edu
Thu Jan 29 21:40:00 GMT 2009


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."



More information about the Binutils mailing list