bugAVR C Runtime Library - Bugs: bug #23546, FAQ documentation symbol seems...

 
 

bug #23546: FAQ documentation symbol seems wrong

Submitted by:  Thijs de Ridder <thijs>
Submitted on:  Thu 12 Jun 2008 08:58:15 AM UTC  
 
Category: DocumentationSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Documentation
Status: FixedPercent Complete: 100%
Assigned to: Eric Weddington <arcanum>Open/Closed: Closed
Release: 1.4.6Fixed Release: 1.7.0

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 12 Jun 2008 08:58:15 AM UTC, original submission:

In the FAQ of Avr-libc at the entry: "How to add a raw binary image to linker output?" is an example of how to add binary. The documentation tells there are two symbols generated:

"This will create a file named foo.o, with the contents of foo.bin. The contents will default to section .data, and two symbols will be created named binary_foo_bin_start and binary_foo_bin_end. These symbols can be referred to inside a C source to access these data."

I used used this functionality and tried to use the symbols. The linker gave a warning it couldn't find the symbols. When looking at the .o file it seems the symbol names are:
_binary_foo_bin_start
_binary_foo_bin_end

Note the missing underscore at the end. I'm not really an avr-objcopy expert, to say at least, but it seems to me the documentation in the FAQ is not correct.

I'm using WinAVR 20070525 and avr-objcopy version: 'GNU objcopy 2.17 + coff-avr-patch (20050630)'

Thijs de Ridder <thijs>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by arcanum (Updated the item)
  • -unavailable- added by thijs (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 06 Aug 2008 05:03:32 PM UTCarcanumPercent Complete0%=>100%
      Assigned toNone=>arcanum
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>1.7.0
    Wed 06 Aug 2008 05:03:31 PM UTCarcanumStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1