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/



_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to