Fix support for i386 TLS GD-to-IE optimization.
authorCary Coutant <ccoutant@gmail.com>
Sun, 22 Mar 2015 18:59:21 +0000 (11:59 -0700)
committerCary Coutant <ccoutant@gmail.com>
Sun, 22 Mar 2015 18:59:21 +0000 (11:59 -0700)
commit152f702439a34bf20b74f472695490edb42ad56f
tree0d3125aa06f15976457c1af5bc08c2077382a68b
parentbccffdfdf268a84533131d6e4d6208f9873892ee
Fix support for i386 TLS GD-to-IE optimization.

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.

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.
gold/ChangeLog
gold/i386.cc