Problem with including binary blob

View: New views
5 Messages — Rating Filter:   Alert me  

Problem with including binary blob

by Daniel Otte-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
I have a problem with including a binary blob (which I converted into a .S file
containing .byte 0x.. statements).
The problem starts with the linker, which says:

/usr/lib/gcc/avr/4.3.3/../../../../avr/lib/avr5/crtm644.o: In function
`__vector_default':
(.vectors+0x50): warning: internal error: out of range error
/usr/lib/gcc/avr/4.3.3/../../../../avr/lib/avr5/crtm644.o: In function
`__vector_default':
(.vectors+0x54): warning: internal error: out of range error
/usr/lib/gcc/avr/4.3.3/../../../../avr/lib/avr5/crtm644.o:(.init9+0x0): warning:
internal error: out of range error
main-huffman-test.o: In function `main':
/home/bg/workspace/avr-huffman/main-huffman-test.c:90: warning: internal error:
out of range error
...

As you might have guessed I'm implementing a huffman decompression algorithm
where I want to include the compressed data as binary blob.
I'm suspecting the compiler to use rcall where a call is needed.

You can download the code at http://nerilex.3dots.de/xchg/avr-huffman.tar.bz2

thanks in advance,
  Daniel



_______________________________________________
AVR-chat mailing list
AVR-chat@...
http://lists.nongnu.org/mailman/listinfo/avr-chat

signature.asc (196 bytes) Download Attachment

Re: Problem with including binary blob

by David Kelly :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Jun 30, 2009 at 07:03:04PM +0200, Daniel Otte wrote:
> Hello,
> I have a problem with including a binary blob (which I converted into a .S file
> containing .byte 0x.. statements).
> The problem starts with the linker, which says:
>
> /usr/lib/gcc/avr/4.3.3/../../../../avr/lib/avr5/crtm644.o: In function
> `__vector_default':
> (.vectors+0x50): warning: internal error: out of range error

Is telling you not to load your binary data into the vector section.

--
David Kelly N4HHE, dkelly@...
========================================================================
Whom computers would destroy, they must first drive mad.


_______________________________________________
AVR-chat mailing list
AVR-chat@...
http://lists.nongnu.org/mailman/listinfo/avr-chat

Re: Problem with including binary blob

by Bill Gatliff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

David Kelly wrote:
> On Tue, Jun 30, 2009 at 07:03:04PM +0200, Daniel Otte wrote:
>  
>> /usr/lib/gcc/avr/4.3.3/../../../../avr/lib/avr5/crtm644.o: In function
>> `__vector_default':
>> (.vectors+0x50): warning: internal error: out of range error
>>    
>
> Is telling you not to load your binary data into the vector section.
>  

... cause it probably won't fit--- and indeed, in this case it doesn't.  :)


b.g.

--
Bill Gatliff
bgat@...




_______________________________________________
AVR-chat mailing list
AVR-chat@...
http://lists.nongnu.org/mailman/listinfo/avr-chat

Parent Message unknown Re: Problem with including binary blob

by Daniel Otte-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Francisco Silva wrote:
>
> See this:
> http://lists.gnu.org/archive/html/avr-gcc-list/2006-04/msg00046.html
>
> for a very nice way to include binary blobs.
>

That is really a nice way to do it, but it places the result in th RAM, not in
the FLASH (sure it is also written to the flash, to load it). So how can I
instruct avr-objcopy to produce a elf-file from a binary where the contents is
only stored in flash.

kind regards,
  Daniel



_______________________________________________
AVR-chat mailing list
AVR-chat@...
http://lists.nongnu.org/mailman/listinfo/avr-chat

signature.asc (196 bytes) Download Attachment

Re: Problem with including binary blob

by Joerg Wunsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Daniel Otte" <daniel.otte@...> wrote:

> So how can =
> I
> instruct avr-objcopy to produce a elf-file from a binary where the conten=
> ts is
> only stored in flash.

http://www.nongnu.org/avr-libc/user-manual/FAQ.html#faq_binarydata

(Curious, why does your news reader post articles as "quoted
unreadable"?  Even for emails, that's not necessary anymore, as most
servers do understand 8-bit transmissions, and SMTP servers can change
the encoding on the fly if there's really some server that cannot
handle 8-bit.  Unfortunately, news servers have never been taught
this.)
--
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


_______________________________________________
AVR-chat mailing list
AVR-chat@...
http://lists.nongnu.org/mailman/listinfo/avr-chat