Avr-libc FAQ small mistake

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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:

Quote:
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)'

If it's indeed wrong, is there a place to post a bug report?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

> If it's indeed wrong, is there a place to post a bug report?

https://savannah.nongnu.org/bugs...

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Created bug report: #23546