#3402 closed defect (fixed)

dl06: mips hurricane Mixed Endian Error

Reported by: Joel Sherrill Owned by: chrisj@…
Priority: normal Milestone: 5.1
Component: tool Version: 5
Severity: normal Keywords:
Cc: Blocked By:
Blocking: #3401

Description

Also occurs on rbtx4925 and rbtx4938

rtems-ld -r /home/joel/rtems-work/rtems-testing/rtems/build-mips-hurricane-rtems/mips-rtems5/c/hurricane -O rap -b dl06.pre -e rtems_main -s \

-o dl06.rap dl06-o1.o dl06-o2.o -lm

error: elf:check_file: /data/home/joel/rtems-work/tools/5/bin/../lib/gcc/mips-rtems5/7.3.0/../../../../mips-rtems5/lib/libc.a:lib_a-_Exit.o@23298: Mixed data types not allowed (LSB/MSB).

Change History (6)

comment:1 Changed on Apr 18, 2018 at 1:15:58 AM by Chris Johns

Ouch, I will need to think about this one because rtems-ld does not know about mutilib configurations and the BSP has -mips3 -EL as options to the linker.

comment:2 Changed on Apr 18, 2018 at 1:28:13 AM by Chris Johns

Looking at the rtemstoolkit/rld-cc.cpp function get_library_path() is asking gcc for the path to a library and if this is being used it may be a simple matter of adding the CFLAGS or CPU_FLAGS to rtems-ld.

I suspect -E will need to be added to the flag filter list so as a machine flag.

comment:3 Changed on Apr 18, 2018 at 1:29:19 AM by Chris Johns

Blocking: 3401 added

comment:4 Changed on Oct 14, 2018 at 9:57:35 PM by Joel Sherrill <joel@…>

Resolution: fixed
Status: assignedclosed

In 632bb17/rtems:

libtests/Makefile.am: Add CPU_CFLAGS to rtems-ld invocation

closes #3401, #3402.

comment:5 Changed on Oct 14, 2018 at 9:59:18 PM by Joel Sherrill <joel@…>

In 36fde51/rtems-tools:

rtemstoolkit/rld-cc.cpp: Accept -EL, -EB, and -Gn machine flags

closes #3401, #3402, $3424.

comment:6 Changed on Oct 14, 2018 at 10:06:16 PM by Joel Sherrill <joel@…>

In 8992d20/rtems-source-builder:

rtems-tools-5-1.cfg: Bump to latest

closes #3401, #3402, #3424.

Note: See TracTickets for help on using tickets.