[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] gnu-as: Error: invalid sections for operation on `Con
From: |
Jörgen Birkler |
Subject: |
Re: [avr-chat] gnu-as: Error: invalid sections for operation on `ConfigDescriptor' and `L0' |
Date: |
Wed, 25 May 2005 12:44:16 +0200 (CEST) |
User-agent: |
SquirrelMail/1.4.4 |
Command line:
avr-gcc -c -mmcu=atmega8 -I. -x assembler-with-cpp -save-temps
-Wa,-ahlms=USB2RS232.lst, -gstabs USB2RS232.s -o
Errors:
USB2RS232.s:1676: Error: invalid sections for operation on `StatusAnswer'
and `L0'
USB2RS232.s:1677: Error: invalid sections for operation on `StatusAnswer'
and `L0'
Offending line example:
-----
ComposeGET_STATUS2:
ldi ZH, high_rom(StatusAnswer<<1) ;ROMpointer to answer
ldi ZL, low(StatusAnswer<<1)
rjmp ComposeEndXXXDescriptor ;and complete
-----
Defines:
#define high_rom(x) ((x)>>8)
#define low(x) ((x) & 0xFF)
Attached is the assembler file.
> On Wed, May 25, 2005 at 10:37:35AM +0200, Jörgen Birkler wrote:
>> Trying to port Igor Ceskos USB code to GNU assembler, but getting
errors
>> I
>> do not understand.
>
> If you could post a few offending lines and their error messages, we
> should be able to offer some advice.
>
> Erik
>
USB2RS232.s
Description: Text document