[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

binutils-2.9.1.0.25 + rtems-patches is broken




On 30 Jul 1999, Ian Lance Taylor wrote:

>    Date: Thu, 29 Jul 1999 17:07:48 -0500 (CDT)
>    From: <joel at oarcorp.com>
> 
>    I recall investigating the last time Ralf ran into this.  
> 
>    Ian .. does this look familiar to anything on the binutils list?
> 
>    On Thu, 15 Jul 1999, Ralf Corsepius wrote:
> 
>    > A linker problem with sptests/sp25 for i386-rtems (elf) / i386ex:
>    > 
>    > /opt/rtems/bin/i386-rtems-gcc --pipe -B../../../../../i386ex/lib/ -specs bsp_specs
>    > -qrtems     -I../../../../../i386ex/lib/include/networking  -g -Wall -ansi -fasm
>    > -O4     -o o-i386ex/sp25.coff  o-i386ex/init.o o-i386ex/task1.o
>    > ../../../../../i386ex/lib/no-dpmem.rel ../../../../../i386ex/lib/no-event.rel
>    > ../../../../../i386ex/lib/no-msg.rel ../../../../../i386ex/lib/no-mp.rel
>    > ../../../../../i386ex/lib/no-part.rel ../../../../../i386ex/lib/no-signal.rel
>    > ../../../../../i386ex/lib/no-timer.rel ../../../../../i386ex/lib/no-rtmon.rel
>    > ../../../../../i386ex/lib/libtest.a
>    > ../../../../../i386ex/lib/start.o(.initial+0x157): relocation truncated to fit:
>    > R_386_16 i8259s_cache
>    > collect2: ld returned 1 exit status
>    > make[5]: *** [o-i386ex/sp25.exe] Error 1
> 
> This error just means that there is a 16 bit relocation to an address
> which could not be represented in 16 bits.  Normally the fix is to add
> a data32 or addr32 prefix to get a 32 bit relocation instead.

Weird.  This is just a C variable declared in i386/shared/irq/irq.c.  I
went looking for it expecting to find some assembly code. :(

it is used like this in i386ex/start/start.S

start.S:      movw    $0xFFFB, SYM(i8259s_cache) /* set up same values in cache */

I am heading out the door.  Any other ideas what could have tripped this?

Should there be an extern of some sort to tell gas it is an extern data32
entity?

--joel
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985