[gold commit] PR gold/18106: Fix support for i386 TLS GD-to-IE optimization

Cary Coutant ccoutant@gmail.com
Sun Mar 22 19:02:00 GMT 2015


There are two cases to support, one with an SIB-form (6-byte) LEA,
the other with a 5-byte LEA and a NOP after the call __tls_get_addr.
Gold did not yet support the second case. This patch adds that
support.

Tested on i386 by HJ.

2015-03-22  Cary Coutant  <cary@google.com>

gold/
        PR gold/18106
        * i386.cc (Target_i386::Relocate::tls_gd_to_ie): Fix support for
        non-SIB form of lea, with nop after the call.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr18106-tls.patch
Type: application/octet-stream
Size: 2745 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150322/b8c8e44d/attachment.obj>


More information about the Binutils mailing list