【问题标题】:Compile glibc without TLS support在不支持 TLS 的情况下编译 glibc
【发布时间】:2016-09-30 02:01:40
【问题描述】:

我在 GNU 网页 (http://www.gnu.org/software/libc/manual/html_node/Configuring-and-compiling.html) 上读到,使用选项“--without-tls”可以在不支持 TLS 的情况下编译 glibc。所以我做到了,使用以下命令:

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

然后

make

但鉴于我仍然可以使用 readelf 查看 libc.so.6 对象中的 .tdata 和 .tbss 部分,显然这样的标志并没有达到预期的效果。为什么会这样?是否只是忽略了该选项?

【问题讨论】:

    标签: linux pthreads glibc libc


    【解决方案1】:

    此处添加了选项--without-tls

    2002-02-06  Ulrich Drepper  <drepper@redhat.com>
    
            * configure.in: Add --without-tls option.
    ...
    

    并在此处删除:

    2011-09-11  Ulrich Drepper  <drepper@gmail.com>
    
            * configure.in: Remove --with-tls option.
    ...
    

    手册尚未更新以反映这一点。

    【讨论】:

      猜你喜欢
      • 2012-04-19
      • 2019-04-22
      • 2013-02-22
      • 2014-12-23
      • 2021-05-05
      • 2020-09-19
      • 1970-01-01
      • 2012-10-06
      • 1970-01-01
      相关资源
      最近更新 更多