NetBSD-Bugs archive

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

Re: toolchain/49928: can not build arm OABI files



The following reply was made to PR toolchain/49928; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: toolchain/49928: can not build arm OABI files
Date: Wed, 27 May 2015 14:07:48 +0200

 Ok, I was told to ignore objdump/readelf output and just use file(1)
 instead, and this indeed shows we create proper eabi and oabi object
 files:
 
 src/compat/arm/oabi/lib/csu> file crt0.o 
 crt0.o: ELF 32-bit LSB relocatable, ARM, version 1, not stripped
 
 vs.:
 
 src/lib/csu/crt0.o: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), not stripped
 
 So the cc options are fine, but we die trying to build the compat/oabi version
 of libgcc:
 
 /ssd/tools/lib/gcc/armv4--netbsdelf-eabi/4.8.4/../../../../armv4--netbsdelf-eabi
 /bin/ld: error: Source object libgcc_s_pic.a(_udivsi3.pico) has EABI version 0, 
 but target libgcc_s.so.1.0 has EABI version 5
 
 The link invocation is:
 
 /ssd/tools/bin/armv4--netbsdelf-eabi-gcc -nodefaultlibs -Wl,-x -shared -Wl,-sona
 me,libgcc_s.so.1 -Wl,--warn-shared-textrel -Wl,-Map=libgcc_s.so.1.map   -Wl,-m,a
 rmelf_nbsd -mabi=apcs-gnu -mfloat-abi=soft  --sysroot=/ssd/hosts/shark -nodefaul
 tlibs -Wl,--version-script=/ssd/obj/shark/ssd/src/compat/arm/oabi/external/gpl3/
 gcc/lib/libgcc/libgcc_s/libgcc.map  -o libgcc_s.so.1.0  -Wl,-rpath,/usr/lib/oabi
   -L=/usr/lib/oabi  -Wl,--whole-archive libgcc_s_pic.a  -Wl,--no-whole-archive  
 
 
 
 Martin
 


Home | Main Index | Thread Index | Old Index