Motherboard Forums


Reply
Thread Tools Display Modes

Error: internal_relocation (type: OFFSET_IMM) not fixed up .....HELPNEEDED

 
 





















nik
Guest
Posts: n/a

 
      09-29-2008, 08:06 AM


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.
 
Reply With Quote
 
42Bastian Schick
Guest
Posts: n/a

 
      09-29-2008, 10:06 AM
On Mon, 29 Sep 2008 00:06:50 -0700 (PDT), nik <>
wrote:

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


You must define these constants (the immediate value can not be
resolved during linking).

--
42Bastian
Do not email to , it's a spam-only account :-)
Use <same-name>@monlynx.de instead !
 
Reply With Quote
 
nik
Guest
Posts: n/a

 
      09-29-2008, 11:04 AM
On Sep 29, 2:06*pm, bastia...@yahoo.com (42Bastian Schick) wrote:
> On Mon, 29 Sep 2008 00:06:50 -0700 (PDT), nik <nitinkoth...@gmail.com>
> wrote:
>
> >The lines 157,160,162,163 that are giving errors are :
> > str * r0,[r1,#PS_PCER_OFF]

>
> You must define these constants (the immediate value can not be
> resolved during linking).
>
> --
> 42Bastian
> Do not email to bastia...@yahoo.com, it's a spam-only account :-)
> Use <same-name>@monlynx.de instead !


Thanks Bastian !
Is there any tutorial which explains the runtime file crt0.S ?

One more question. Is it necessary to link both- crt0.S and
startup.S ?

Thanks !

Nik
 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      09-29-2008, 07:59 PM
nik wrote:
> 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.



Please do not start a new thread with the same question.
I already answered the original thread.

--

Tauno Voipio
tauno voipio (at) iki fi


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Asus Eee 2G surf ? battery type & life. Natéag Asus 1 08-27-2008 05:14 PM
Re: ACPI Fixed Feature William R. Walsh Dell 2 05-04-2008 02:09 AM
XPS600 serial ATA type I or II Jim Dell 3 12-26-2007 05:57 PM
[LONG] Problems with new ddr400 ô_ô Asus 0 05-07-2007 10:00 PM


All times are GMT. The time now is 01:53 PM.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43