Forums

Error: internal_relocation (type: OFFSET_IMM) not fixed up

Started by nik September 29, 2008
Hello

I am using gcc 4.1.1 as a cross compiler for arm on ubuntu.
Being a rookie in gcc, I have very little knowledge of it.

I am trying  to assemble the crt0.s file using the command
-desktop:~/armgcc$ arm-elf-as crt0.s

But what I am getting is :

crt0.s: Assembler messages:
crt0.s:157: Error: internal_relocation (type: OFFSET_IMM) not fixed up
crt0.s:160: Error: internal_relocation (type: OFFSET_IMM) not fixed up
crt0.s:162: Error: internal_relocation (type: OFFSET_IMM) not fixed up
crt0.s:163: Error: internal_relocation (type: OFFSET_IMM) not fixed up

The lines 157,160,162,163 that are giving errors are :
 str   r0,[r1,#PS_PCER_OFF]

str   r0,[r1,#PIO_PER_OFF]

str   r0,[r1,#PIO_CODR_OFF]

str   r0,[r1,#PIO_OER_OFF]

Please help me out with the cause and solution for this error.

Thanks.