[RTEMS Project] #2210: PowerPC: dl01 and dl02 tests don't link

RTEMS trac trac at rtems.org
Mon Dec 8 08:57:52 UTC 2014


#2210: PowerPC: dl01 and dl02 tests don't link
-----------------------------+--------------------
 Reporter:  sebastian.huber  |      Owner:  chrisj
     Type:  defect           |     Status:  new
 Priority:  normal           |  Milestone:  4.11
Component:  cpukit           |    Version:  4.11
 Severity:  blocker          |   Keywords:
-----------------------------+--------------------
 There seems to be a problem with the small-data area:

 gmake[3]: Entering directory `/scratch/git-build/b-psim/powerpc-
 rtems4.11/c/psim/testsuites/libtests/dl01'
 powerpc-rtems4.11-gcc -B../../../../../psim/lib/ -specs bsp_specs -qrtems
 -meabi -mcpu=603e -msdata=sysv -fno-common -Dppc603e -O2 -g -fno-keep-
 inline-functions -Wall -Wmissing-prototypes -Wimplicit-function-
 declaration -Wstrict-prototypes -Wnested-externs    -meabi -mcpu=603e
 -msdata=sysv -fno-common -Dppc603e   -o dl01.pre.exe init.o dl-load.o dl-
 tar.o
 powerpc-rtems4.11-nm -g -n dl01.pre.exe > dl01.pre.num
 powerpc-rtems4.11-size dl01.pre.exe
    text    data     bss     dec     hex filename
  231008    2112 16544064        16777184         ffffe0 dl01.pre.exe
 cp dl01.pre.exe dl01.pre.ralf
 rm dl01.pre.ralf
 mv dl01.pre.exe dl01.pre
 rtems-syms -e -c "-meabi -mcpu=603e -msdata=sysv -fno-common -Dppc603e -O2
 -g -fno-keep-inline-functions -Wall -Wmissing-prototypes -Wimplicit-
 function-declaration -Wstrict-prototypes -Wnested-externs" -o dl-sym.o
 dl01.pre
 powerpc-rtems4.11-gcc -B../../../../../psim/lib/ -specs bsp_specs -qrtems
 -meabi -mcpu=603e -msdata=sysv -fno-common -Dppc603e -O2 -g -fno-keep-
 inline-functions -Wall -Wmissing-prototypes -Wimplicit-function-
 declaration -Wstrict-prototypes -Wnested-externs    -meabi -mcpu=603e
 -msdata=sysv -fno-common -Dppc603e   \
             -o dl01.exe init.o dl-load.o dl-tar.o dl-sym.o
 /opt/rtems-4.11/lib64/gcc/powerpc-rtems4.11/4.9.2/../../../../powerpc-
 rtems4.11/bin/ld: dl-sym.o: the target (rtems__rtl_base_globals_size) of a
 R_PPC_SDAREL16 relocation is in the wrong output section (.rodata)
 dl-sym.o: In function `rtems_rtl_base_global_syms_init':
 rld--8eeaaa.c:(.text+0x6): relocation truncated to fit: R_PPC_SDAREL16
 against `rtems__rtl_base_globals_size'
 collect2: error: ld returned 1 exit status
 gmake[3]: [dl01.exe] Error 1 (ignored)
 gmake[3]: Leaving directory `/scratch/git-build/b-psim/powerpc-
 rtems4.11/c/psim/testsuites/libtests/dl01'
 gmake[2]: Leaving directory `/scratch/git-build/b-psim/powerpc-
 rtems4.11/c/psim/testsuites/libtests/dl01'
 Making all in dl02
 gmake[2]: Entering directory `/scratch/git-build/b-psim/powerpc-
 rtems4.11/c/psim/testsuites/libtests/dl02'
 gmake  all-am
 gmake[3]: Entering directory `/scratch/git-build/b-psim/powerpc-
 rtems4.11/c/psim/testsuites/libtests/dl02'
 powerpc-rtems4.11-gcc -B../../../../../psim/lib/ -specs bsp_specs -qrtems
 -meabi -mcpu=603e -msdata=sysv -fno-common -Dppc603e -O2 -g -fno-keep-
 inline-functions -Wall -Wmissing-prototypes -Wimplicit-function-
 declaration -Wstrict-prototypes -Wnested-externs    -meabi -mcpu=603e
 -msdata=sysv -fno-common -Dppc603e   -o dl02.pre.exe init.o dl-load.o dl-
 tar.o
 powerpc-rtems4.11-nm -g -n dl02.pre.exe > dl02.pre.num
 powerpc-rtems4.11-size dl02.pre.exe
    text    data     bss     dec     hex filename
  241336    2104 16533760        16777200         fffff0 dl02.pre.exe
 cp dl02.pre.exe dl02.pre.ralf
 rm dl02.pre.ralf
 mv dl02.pre.exe dl02.pre
 rtems-syms -e -c "-meabi -mcpu=603e -msdata=sysv -fno-common -Dppc603e -O2
 -g -fno-keep-inline-functions -Wall -Wmissing-prototypes -Wimplicit-
 function-declaration -Wstrict-prototypes -Wnested-externs" -o dl-sym.o
 dl02.pre
 powerpc-rtems4.11-gcc -B../../../../../psim/lib/ -specs bsp_specs -qrtems
 -meabi -mcpu=603e -msdata=sysv -fno-common -Dppc603e -O2 -g -fno-keep-
 inline-functions -Wall -Wmissing-prototypes -Wimplicit-function-
 declaration -Wstrict-prototypes -Wnested-externs    -meabi -mcpu=603e
 -msdata=sysv -fno-common -Dppc603e   \
             -o dl02.exe init.o dl-load.o dl-tar.o dl-sym.o
 /opt/rtems-4.11/lib64/gcc/powerpc-rtems4.11/4.9.2/../../../../powerpc-
 rtems4.11/bin/ld: dl-sym.o: the target (rtems__rtl_base_globals_size) of a
 R_PPC_SDAREL16 relocation is in the wrong output section (.rodata)
 dl-sym.o: In function `rtems_rtl_base_global_syms_init':
 rld--tfeaaa.c:(.text+0x6): relocation truncated to fit: R_PPC_SDAREL16
 against `rtems__rtl_base_globals_size'
 collect2: error: ld returned 1 exit status
 gmake[3]: [dl02.exe] Error 1 (ignored)
 gmake[3]: Leaving directory `/scratch/git-build/b-psim/powerpc-
 rtems4.11/c/psim/testsuites/libtests/dl02'

--
Ticket URL: <http://devel.rtems.org/ticket/2210>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list