0

我正在binutils-2.27gcc 5.3.0. 以下是配置选项:

../binutils-2.27/configure --prefix=$FOO --build=x86_64-redhat-linux --disable-multilib --with-gmp=$FOO --with-mpfr=$FOO --with-mpc=$FOO --with-isl=$FOO --with-system-zlib --enable-lto --enable-ld --enable-gold --enable-plugins

当我跑步时make check,我得到

gcc -Bgcctestdir/ -fPIE -g -O2 -Bgcctestdir/ -Wl,-R,.  -o pr20216a_test pr20216a_test-pr20216_main.o pr20216a_test-pr20216_def.o pr20216_gd.o pr20216_ld.o -ldl 
../../../binutils-2.27/gold/testsuite/pr20216_gd.S:13: error: missing expected TLS relocation
../../../binutils-2.27/gold/testsuite/pr20216_gd.S:27: error: missing expected TLS relocation
../../../binutils-2.27/gold/testsuite/pr20216_gd.S:48: error: missing expected TLS relocation
gcctestdir/ld: error: missing expected TLS relocation
../../../binutils-2.27/gold/testsuite/pr20216_ld.S:21: error: missing expected TLS relocation
../../../binutils-2.27/gold/testsuite/pr20216_ld.S:22: error: missing expected TLS relocation
../../../binutils-2.27/gold/testsuite/pr20216_ld.S:33: error: missing expected TLS relocation
../../../binutils-2.27/gold/testsuite/pr20216_ld.S:34: error: missing expected TLS relocation
../../../binutils-2.27/gold/testsuite/pr20216_ld.S:35: error: missing expected TLS relocation
gcctestdir/ld: error: missing expected TLS relocation
collect2: error: ld returned 1 exit status
4

1 回答 1

2

这是由测试套件中的一个错误引起的,它意外地使用了系统汇编程序而不是构建树中的最新汇编程序。编写该测试是为了期望仅由更新版本的 gas 产生的重定位。它于 8 月 10 日修复并向后移植到 2.27 分支。有关更多信息,请参阅PR 20216的讨论。

于 2016-09-17T16:49:52.703 回答