2016-05-31 125 views
0

我在GNU網頁(http://www.gnu.org/software/libc/manual/html_node/Configuring-and-compiling.html)上閱讀,可以通過使用'--without-tls'選項來編譯glibc而無需TLS支持。所以,我沒有,使用下面的命令:編譯沒有TLS支持的glibc

../configure --prefix=/home/me/glibc-2.19/build/ --without-tls 

然後

make 

但顯然這樣的標誌沒有收到預期的效果因爲我仍然可以看到部分.tdata和.tbss在使用readelf的libc.so.6對象。這是爲什麼發生?這種選擇只是被忽略了嗎?

回答

1

選項--without-tls在這裏補充說:

2002-02-06 Ulrich Drepper <[email protected]> 

     * configure.in: Add --without-tls option. 
... 

這裏刪除:

2011-09-11 Ulrich Drepper <[email protected]> 

     * configure.in: Remove --with-tls option. 
... 

手冊尚未更新以反映。