Sign in

username:

password:



Not a member?

Search Comp.Arch.Embedded



Search tips

embedded by Keywords

68HC11 | 68HC12 | 8051 | 8052 | ARM | ARM7 | Asic | AT91 | AT91RM9200 | Atmel | AVR | AVRStudio | Bootloader | CFP | CompactFlash | Cygnal | Cypress | Dataflash | DSP | eCos | EEPROM | Embedded Linux | Emulator | Endian | Ethernet | Firewire | FPGA | Freescale | GCC | GNUARM | GSM | H8 | HDLC | I2C | Infineon | Interrupts | Java | JTAG | LCD | LED | LPC2000 | MCU | Microchip | MMC | MPLAB | MSP430 | PC104 | PCB | PCI | PCMCIA | PowerPC | Rabbit | RS232 | RS485 | RTOS | SBC | SDRAM | Sensor | SPI | STK500 | UART | UML | USART | USB | Verilog | VHDL | VxWorks | Xilinx

Ads

Discussion Groups

Discussion Groups | Comp.Arch.Embedded | Error: internal_relocation (type: OFFSET_IMM) not fixed up .....HELP NEEDED

There are 4 messages in this thread.

You are currently looking at messages 0 to 4.

Error: internal_relocation (type: OFFSET_IMM) not fixed up .....HELP NEEDED - nik - 03:06 29-09-08

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.



Re: Error: internal_relocation (type: OFFSET_IMM) not fixed up .....HELP NEEDED - 42Bastian Schick - 05:06 29-09-08

On Mon, 29 Sep 2008 00:06:50 -0700 (PDT), nik <n...@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 b...@yahoo.com, it's a spam-only account :-)
Use <same-name>@monlynx.de instead !

Re: Error: internal_relocation (type: OFFSET_IMM) not fixed up .....HELP NEEDED - nik - 06:04 29-09-08

On Sep 29, 2:06=A0pm, 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 =A0 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

Re: Error: internal_relocation (type: OFFSET_IMM) not fixed up .....HELP NEEDED - Tauno Voipio - 14:59 29-09-08

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