------- Additional Comments From hjl dot tools at gmail dot com  2008-04-24 
13:56 -------
Subject: Re:  -pie issues with TLS relocations

On Thu, Apr 24, 2008 at 6:46 AM, jakub at redhat dot com
<[EMAIL PROTECTED]> wrote:
>
>  ------- Additional Comments From jakub at redhat dot com  2008-04-24 13:46 
> -------
>  That's certainly not enough, see the testcase I've provided.  There are 
> various
>  relocations:
>  0000000000000003  0000000b00000016 R_X86_64_GOTTPOFF      0000000000000008 c 
> +
>  fffffffffffffffc
>  000000000000000c  0000000c00000017 R_X86_64_TPOFF32       0000000000000000 a 
> + 0
>  0000000000000014  0000000d00000017 R_X86_64_TPOFF32       0000000000000004 b 
> + 0
>  000000000000001e  0000000e00000014 R_X86_64_TLSLD         000000000000000c d 
> +
>  fffffffffffffffc
>  0000000000000023  0000000f00000004 R_X86_64_PLT32         0000000000000000
>  __tls_get_addr + fffffffffffffffc
>  0000000000000029  0000000e00000015 R_X86_64_DTPOFF32      000000000000000c d 
> + 0
>  0000000000000031  0000001000000013 R_X86_64_TLSGD         0000000000000010 e 
> +
>  fffffffffffffffc
>  0000000000000039  0000000f00000004 R_X86_64_PLT32         0000000000000000
>  __tls_get_addr + fffffffffffffffc
>  and all of them can and should be in a PIE transitioned to the fastest,
>  local-exec, ones, as all resolve to a symbol within the PIE.
>

Please add testcases to your patch to make sure that only necessary changes
are included.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6443

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to