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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #23546: FAQ documentation symbol seems wrong

Submitter:  Thijs de Ridder <thijs>
Submitted:  Thu 12 Jun 2008 08:58:15 AM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Documentation
Status:  Fixed Assigned to:  arcanum
Percent Complete:  100% Open/Closed:  Closed
Release:  1.4.6 Fixed Release:  1.7.0

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-08-06 arcanum Percent Complete0% 100%
        Assigned toNone arcanum
        Open/ClosedOpen Closed
        Fixed ReleaseNone 1.7.0
    2008-08-06 arcanum StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code