Hi
 
I have an external .asm file for a custom interrupt vector table:
 
.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
 
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=0x0000 --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?
 
thanks for any help.
 
Jaco