avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #21559] BOOTLOADER_SECTION macro does not function p


From: Eric Weddington
Subject: [avr-libc-dev] [bug #21559] BOOTLOADER_SECTION macro does not function properly when used in more than one file
Date: Sun, 11 Nov 2007 21:01:44 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9

Update of bug #21559 (project avr-libc):

                  Status:                    None => Invalid                
             Assigned to:                    None => arcanum                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #2:

The problem is not with avr-libc. The issue is with GNU ld (the linker) in
Binutils. For some unknown reason, this changed between 2.16.1 and 2.17.

The workaround is to use a custom linker script. Copy the default linker
script (.x file for your architecture) and add the following to the SECTIONS
block:

.bootloader  : { KEEP(*(.bootloader*)) }

Which means for all files (the first star) add all sections that start the
".bootloader" and any characters after that, KEEP the sections in the final
output, and place them in the output section ".bootloader"

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?21559>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]