[ECOS] Internal_relocation error
Gary Thomas
gthomas@cambridge.redhat.com
Mon Feb 19 05:28:00 GMT 2001
On 19-Feb-2001 K. Young Park wrote:
> Hi.
> I am sorry if you see some encoded characters from my email. ( I am using the Outlook express and
> sending this message in plain text.)
>
> I am porting the redboot to my SA-1110 board. I copied all the files of the assabet and modified
> them. Then I added my configuration to the ecos.db file.
> By the way, I met the following errors while compiling.
>
> arm-elf-gcc -Wp,-MD,vectors.tmp -I/home/pkyoung/eCos/010215/ecos/redboot-garnet/install/include
> -I/home/pkyoung/eCos/010215/ecos/packages/hal/arm/arch/current
> -I/home/pkyoung/eCos/010215/ecos/packages/hal/arm/arch/current/src -I/home/pkyoung/eCos/010215/eco
> s/packages/hal/arm/arch/current/tests -I. -mcpu=strongarm1100 -Wall -Wpointer-arith
> -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections
> -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -c -o /home/pkyoung/eCos/010
> 215/ecos/redboot-garnet/install/lib/vectors.o
> /home/pkyoung/eCos/010215/ecos/packages/hal/arm/arch/current/src/vectors.S
> make[1]: exit `/home/pkyoung/eCos/010215/ecos/redboot-garnet/hal/arm/arch/current' directory
> Assembler messages:
> /home/pkyoung/eCos/010215/ecos/redboot-garnet/install/include/cyg/hal/hal_platform_setup.h:118:
> Error: Internal_relocation (type 185) not fixed up (IMMEDIATE)
> /home/pkyoung/eCos/010215/ecos/redboot-garnet/install/include/cyg/hal/hal_platform_setup.h:118:
> Error: Internal_relocation (type 185) not fixed up (IMMEDIATE)
>
>
> The line 118 is in the middle of _platform_setup1 macro.
> Can anybody figure out the reason for the error?
> Thanks in advance.
These errors are difficult to nail down, but what you've done is reference
a symbol as an absolute value which is not defined at assembly time. An
example might be:
mov r0,IM_VAL
The way I'd find this one would be to do a binary search (ugly, but effective)
within the macro. Just use #if 0/#endif to take away parts of the code until
you've isolated the lines in question. N.B. there may be other ways, but this
has always worked for me.
More information about the Ecos-discuss
mailing list