[gold commit] PR 19353: Fix internal error when applying TLSDESC relocations with no TLS segment

Cary Coutant ccoutant@gmail.com
Tue Jan 12 08:05:00 GMT 2016


I've committed this patch to fix a gold crash, first noticed on
Aarch64, but a similar problem exists on i386 and x86_64.

-cary

2016-01-11  Cary Coutant  <ccoutant@gmail.com>

gold/
        PR gold/19353
        * aarch64.cc (Target_aarch64::relocate_tls): Don't insist that
        we have a TLS segment for GD-to-IE optimization.
        * i386.cc (Target_i386::tls_gd_to_ie): Remove tls_segment parameter.
        Adjust all calls.
        (Target_i386::tls_desc_gd_to_ie): Likewise.
        (Target_i386::relocate_tls): Don't insist that we have a TLS segment
        for TLSDESC GD-to-IE optimizations.
        * x86_64.cc (Target_x86_64::tls_gd_to_ie): Remove tls_segment parameter.
        Adjust all calls.
        (Target_x86_64::tls_desc_gd_to_ie): Likewise.
        (Target_x86_64::relocate_tls): Don't insist that we have a TLS segment
        for TLSDESC GD-to-IE optimizations.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr19353.patch
Type: application/octet-stream
Size: 6123 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20160112/b612aeb5/attachment.obj>


More information about the Binutils mailing list