Source: libbsd Version: 0.8.3-1 Tags: upstream patch User: helm...@debian.org Usertags: rebootstrap
Hi Guillem, quite a while a ago, I promised a patch for libbsd to make it work on tilegx. Here it is. If you build libbsd for tilegx without the patch, you'll get: | libtool: compile: tilegx-linux-gnu-gcc -DHAVE_CONFIG_H -I.. -isystem ../include/bsd/ -include ../config.h -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED -D__REENTRANT -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -fdebug-prefix-map=/tmp/buildd/libbsd/libbsd-0.8.3=. -specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -MT nlist.lo -MD -MP -MF .deps/nlist.Tpo -c nlist.c -fPIC -DPIC -o .libs/nlist.o | In file included from nlist.c:54:0: | local-elf.h:196:2: error: #error Unknown ELF machine type | #error Unknown ELF machine type | ^~~~~ | local-elf.h:219:2: error: #error Unknown ELF class | #error Unknown ELF class All that it needs to build libbsd for tilegx is defining three macros. Please consider applying the attached patch. Helmut
--- a/src/local-elf.h +++ b/src/local-elf.h @@ -185,6 +185,12 @@ #endif #define ELF_TARG_DATA ELFDATA2MSB +#elif defined(__tilegx__) + +#define ELF_TARG_MACH EM_TILEGX +#define ELF_TARG_CLASS ELFCLASS64 +#define ELF_TARG_DATA ELFDATA2LSB + #elif defined(__or1k__) #define ELF_TARG_MACH EM_OPENRISC