[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #23546] FAQ documentation symbol seems wrong
From: |
Thijs de Ridder |
Subject: |
[avr-libc-dev] [bug #23546] FAQ documentation symbol seems wrong |
Date: |
Thu, 12 Jun 2008 08:58:17 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14 |
URL:
<http://savannah.nongnu.org/bugs/?23546>
Summary: FAQ documentation symbol seems wrong
Project: AVR C Runtime Library
Submitted by: thijs
Submitted on: Thursday 12/06/08 at 08:58
Category: Documentation
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Documentation
Status: None
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: 1.4.6
Fixed Release: None
_______________________________________________________
Details:
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)'
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?23546>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-dev] [bug #23546] FAQ documentation symbol seems wrong,
Thijs de Ridder <=