#2258 assigned defect

Some PowerPC BSPs fail to link dl01/dl02

Reported by: Joel Sherrill Owned by: Needs Funding
Priority: normal Milestone: Indefinite
Component: unspecified Version: 4.11
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

This has been mentioned on the devel list before but did not get an answer. The following BSPs are impacted:

gwlcfm
mpc5566evb
mpc5566evb_spe
mpc5643l_dpu
mpc5643l_evb
mpc5668g
mpc5674f_ecu508_app
mpc5674f_ecu508_boot
mpc5674fevb
mpc5674fevb_spe
mpc5674f_rsm6
multilib
phycore_mpc5554
qoriq_core_0
qoriq_core_1
qoriq_p1020rdb
qoriq_t2080rdb
qoriq_t4240rdb

powerpc-rtems4.11-gcc -B../../../../../gwlcfm/lib/ -specs bsp_specs -qrtems -mcpu=8540 -meabi -msdata=sysv -fno-common -msoft-float -mno-spe -Dppc_generic -mstrict-align -O2 -g -fno-keep-inline-functions -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -mcpu=8540 -meabi -msdata=sysv -fno-common -msoft-float -mno-spe -Dppc_generic -mstrict-align \

-o dl02.exe init.o dl-load.o dl-tar.o dl-sym.o

/users/joel/rtems-4.11-work/tools/lib/gcc/powerpc-rtems4.11/4.9.2/../../../../powerpc-rtems4.11/bin/ld: dl-sym.o: the target (rtemsrtl_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--uwaaaa.c:(.text+0x2): relocation truncated to fit: R_PPC_SDAREL16 against `rtemsrtl_base_globals_size'

Change History (4)

comment:1 Changed on Mar 4, 2015 at 8:00:29 PM by Chris Johns

I suspect there are flags on gcc command line which effect the asm code being generated. I suspect we need something added to get the object format to match.

comment:2 Changed on Mar 7, 2015 at 2:06:33 AM by Joel Sherrill

Milestone: 4.114.11.1

comment:3 Changed on Jan 26, 2017 at 7:16:00 AM by Sebastian Huber

Milestone: 4.11.14.11.2

comment:4 Changed on Feb 15, 2017 at 1:37:51 PM by Sebastian Huber

Milestone: 4.11.2Indefinite
Owner: changed from Chris Johns to Needs Funding
Status: newassigned
Note: See TracTickets for help on using tickets.