Interrupts for Arm-elf-gcc
Fri Jul 25 16:31:00 GMT 2003
Yeah, I'll show you how to troubleshoot it too. Try running
$ arm-elf-as start.s
$ arm-elf-nm start.o
This will give you a list of symbols in start.o. You should see
00000000 t IRQVector
This says start.o provides the symbol IRQVector.
$ arm-elf-gcc -c main.c
$ arm-elf-nm main.o
00000000 T IRQHandler
This says main.o provides IRQHandler and needs IRQVector. I think you'll
probably find IRQVector isn't defined in start.o. Assembler symbols
default to the equivalent of a C static symbol. To force it extern you
need to add
to start.s. Try
$ info as
On Fri, 2003-07-25 at 09:56, David Mc Kenna wrote:
> Hi Shaun,
> Thanks for the reply.
> Most of what you suggested worked except the declaration:
> IRQVector = IRQHandler;
> I am getting an undefined variable for IRQVector.
> Any ideas?
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to firstname.lastname@example.org
More information about the crossgcc