|
From: | Christian Jullien |
Subject: | [Tinycc-devel] Unknown relocation type for got: 285, the return! |
Date: | Tue, 5 Jan 2021 05:54:33 +0100 |
Hi, I’m quite sure Herman fixed relocation error type 285 on aarch64. This morning it is back again on Linux Fedora 33 aarch64 (RPi 3) when tcc is boostrapped with clang (11) ./configure --strip-binaries --with-selinux --cc=clang --prefix=/home/jullien/tinycc/static Binary directory /home/jullien/tinycc/static/bin TinyCC directory /home/jullien/tinycc/static/lib/tcc Library directory /home/jullien/tinycc/static/lib Include directory /home/jullien/tinycc/static/include Manual directory /home/jullien/tinycc/static/share/man Info directory /home/jullien/tinycc/static/share/info Doc directory /home/jullien/tinycc/static/share/doc Source path /home/jullien/tinycc C compiler clang (11.0) Target OS Linux CPU aarch64 Config strip selinux Creating config.mak and config.h clang -o tcc.o -c tcc.c -DCONFIG_LDDIR="\"lib64\"" -DHAVE_SELINUX -DTCC_TARGET_ARM64 -DONE_SOURCE=0 -Wall -O2 -Wdeclaration-after-statement -fno-strict-aliasing -fheinous-gnu-extensions -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I. clang -o libtcc.o -c libtcc.c -DCONFIG_LDDIR="\"lib64\"" -DHAVE_SELINUX -DTCC_TARGET_ARM64 -DONE_SOURCE=0 -Wall -O2 -Wdeclaration-after-statement -fno-strict-aliasing -fheinous-gnu-extensions -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I. clang -DC2STR conftest.c -o c2str.exe && ./c2str.exe include/tccdefs.h tccdefs_.h clang -o tccpp.o -c tccpp.c -DCONFIG_LDDIR="\"lib64\"" -DHAVE_SELINUX -DTCC_TARGET_ARM64 -DONE_SOURCE=0 -Wall -O2 -Wdeclaration-after-statement -fno-strict-aliasing -fheinous-gnu-extensions -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I. clang -o tccgen.o -c tccgen.c -DCONFIG_LDDIR="\"lib64\"" -DHAVE_SELINUX -DTCC_TARGET_ARM64 -DONE_SOURCE=0 -Wall -O2 -Wdeclaration-after-statement -fno-strict-aliasing -fheinous-gnu-extensions -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I. clang -o tccelf.o -c tccelf.c -DCONFIG_LDDIR="\"lib64\"" -DHAVE_SELINUX -DTCC_TARGET_ARM64 -DONE_SOURCE=0 -Wall -O2 -Wdeclaration-after-statement -fno-strict-aliasing -fheinous-gnu-extensions -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I. clang -o tccasm.o -c tccasm.c -DCONFIG_LDDIR="\"lib64\"" -DHAVE_SELINUX -DTCC_TARGET_ARM64 -DONE_SOURCE=0 -Wall -O2 -Wdeclaration-after-statement -fno-strict-aliasing -fheinous-gnu-extensions -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I. clang -o tccrun.o -c tccrun.c -DCONFIG_LDDIR="\"lib64\"" -DHAVE_SELINUX -DTCC_TARGET_ARM64 -DONE_SOURCE=0 -Wall -O2 -Wdeclaration-after-statement -fno-strict-aliasing -fheinous-gnu-extensions -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I. clang -o arm64-gen.o -c arm64-gen.c -DCONFIG_LDDIR="\"lib64\"" -DHAVE_SELINUX -DTCC_TARGET_ARM64 -DONE_SOURCE=0 -Wall -O2 -Wdeclaration-after-statement -fno-strict-aliasing -fheinous-gnu-extensions -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I. clang -o arm64-link.o -c arm64-link.c -DCONFIG_LDDIR="\"lib64\"" -DHAVE_SELINUX -DTCC_TARGET_ARM64 -DONE_SOURCE=0 -Wall -O2 -Wdeclaration-after-statement -fno-strict-aliasing -fheinous-gnu-extensions -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I. clang -o arm64-asm.o -c arm64-asm.c -DCONFIG_LDDIR="\"lib64\"" -DHAVE_SELINUX -DTCC_TARGET_ARM64 -DONE_SOURCE=0 -Wall -O2 -Wdeclaration-after-statement -fno-strict-aliasing -fheinous-gnu-extensions -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I. ar rcs libtcc.a libtcc.o tccpp.o tccgen.o tccelf.o tccasm.o tccrun.o arm64-gen.o arm64-link.o arm64-asm.o clang -o tcc tcc.o libtcc.a -lm -lpthread -ldl -s gmake[1]: Entering directory '/home/jullien/tinycc/lib' ../tcc -c lib-arm64.c -o lib-arm64.o -B.. -I.. ../tcc -c fetch_and_add_arm64.S -o fetch_and_add_arm64.o -B.. -I.. ../tcc -c dsohandle.c -o dsohandle.o -B.. -I.. ../tcc -ar rcs ../libtcc1.a lib-arm64.o fetch_and_add_arm64.o dsohandle.o ../tcc -c bt-exe.c -o ../bt-exe.o -B.. -I.. ../tcc -c bt-log.c -o ../bt-log.o -B.. -I.. ../tcc -c bcheck.c -o ../bcheck.o -B.. -I.. -g gmake[1]: Leaving directory '/home/jullien/tinycc/lib' perl ./texi2pod.pl tcc-doc.texi tcc-doc.pod pod2man --section=1 --center="Tiny C Compiler" --release="0.9.27" tcc-doc.pod >tcc.1 && rm -f tcc-doc.pod gmake[1]: Entering directory '/home/jullien/tinycc/tests' ------------ hello-exe ------------ Hello World ------------ hello-run ------------ Hello World ------------ libtest ------------ Hello World! fib(32) = 2178309 add(32, 64) = 96 ------------ libtest_mt ------------ running fib with mixed calls 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 10946 (69 ms) running fib in threads 1 2 3 5 8 13 21 34 55 89 233 610 377 144 987 1597 2584 4181 6765 10946 (58 ms) running tcc.c in threads to run fib 1 3 2 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 10946 (6101 ms) compiling tcc.c 10 times (2652 ms) ------------ test3 ------------ Auto Test3 OK ------------ memtest ------------ OK ------------ dlltest ------------ Hello World ------------ dlltest with PIC ------------ tcc: error: Unknown relocation type for got: 285 gmake[2]: *** [Makefile:166: dlltest] Error 1 |
[Prev in Thread] | Current Thread | [Next in Thread] |