This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: forwarded message from Simpkins, Andy
- To: Mark Salter <msalter at redhat dot com>
- Subject: RE: [ECOS] forwarded message from Simpkins, Andy
- From: "Simpkins, Andy" <Andy dot Simpkins at Transcomm dot uk dot com>
- Date: Fri, 17 Aug 2001 15:30:59 +0100
- Cc: ecos-discuss at sources dot redhat dot com
Sorry no go...
it ignores the long_call statment and gives the same error in the linker...
$ arm-elf-gcc -c -DMINIMAL_IOSTREAM -DECOS -DCLED -DDEBUGBLD -I
../../../../../source/header/ -I ../../../../../source/header/additionals/
-I ./../../../../source/API/Ivory/parser -I
/i/eCOSbuilds/a161_install/include/
../../../../../source/app/ecosIvory/*.cpp -fno-rtti -fno-exceptions
../../../../../source/app/ecosIvory/main.cpp: In function `void
flash_query()':
../../../../../source/app/ecosIvory/main.cpp:63: warning: `long_call'
attribute directive ignored
$ 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+0x1c8): relocation truncated to fit: R_ARM_PC24
flash_query(void)
collect2: ld returned 1 exit status
Andy
> -----Original Message-----
> From: Mark Salter [mailto:msalter@redhat.com]
> Sent: 17 August 2001 15:18
> To: Andy.Simpkins@Transcomm.uk.com
> Cc: ecos-discuss@sources.redhat.com
> Subject: Re: [ECOS] 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
>