From: Muller J. <jjm...@su...> - 2004-09-29 15:23:41
|
Hi =20 I have an external .asm file for a custom interrupt vector table: =20 .module ivect .area IVECT (CODE) ljmp __sdcc_gsinit_startup reti .ds 7 ljmp _timer0_ISR .ds 7 reti .ds 7 reti .ds 7 reti .ds 7 reti =20 and I assemble this using " asx8051 -plosgff ivect.asm". The 'g' option tells the assembler that my undefined symbols (such as _timer0_ISR) will be resolved during linking. When I compile and link this with my main program, the linker gives an error: "ASlink-Warning-Undefined Global _timer0_ISR referenced by module 'ivect'. Apparently, this is because the assembler/compiler does not generate a "global" symbol for my timer0_ISR function in my main .c file ( _main and __sdcc_gsinit_startup seems to have global symbols). I compile and link everything with : "sdcc -Wl-b IVECT=3D0x0000 --code-loc 0x2000 = main_prog.c ivect.rel". What must I do so that the linker will be able to reference the C-functions in the main file? =20 thanks for any help. =20 Jaco =20 =20 =20 =20 =20 =20 |