This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: forwarded message from Simpkins, Andy


>>>>> Simpkins, Andy writes:

> OK that stops the compiler error but I now get 
> arm-elf-gcc *.o ../../API/*/*.o -L /i/eCOSbuilds/a161_install/lib/
> -Ttarget.ld -nostdlib -Xlinker -Map -Xlinker mapfile.txt
> main.o: In function `main':
> main.o(.text+0x1cc): relocation truncated to fit: R_ARM_PC24
> flash_query(void *)

> collect2: ld returned 1 exit status

> any ideas? 

Yup. Try:

void __attribute__ ((section (".2ram.flash_query"), long_call)) 
flash_query(void* data) 
{
}

--Mark


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]