[lld] r259679 - ELF: Remove dead code.
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 10 08:03:23 PST 2016
Gcc produces
.long foobar at dtpoff, 0
which is the same thing in little endian.
So it looks like we do have to support both R_X86_64_DTPOFF32 and
R_X86_64_DTPOFF64.
I will add it with at testcase.
Cheers,
Rafael
On 9 February 2016 at 21:05, Sean Silva via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
>
>
> On Tue, Feb 9, 2016 at 4:31 PM, Rui Ueyama <ruiu at google.com> wrote:
>>
>> That's a violation of the ABI, no?
>
>
> I'm not sure, but does it matter? Basically any object file produced by
> clang>=3.4 with debug info will have this if the code uses thread-locals.
> These files are out there in the wild and ToT clang still produces them.
>
> -- Sean Silva
>
>>
>> On Mon, Feb 8, 2016 at 3:05 PM, Sean Silva <chisophugis at gmail.com> wrote:
>>>
>>>
>>>
>>> On Wed, Feb 3, 2016 at 11:07 AM, Rui Ueyama via llvm-commits
>>> <llvm-commits at lists.llvm.org> wrote:
>>>>
>>>> Author: ruiu
>>>> Date: Wed Feb 3 13:07:56 2016
>>>> New Revision: 259679
>>>>
>>>> URL: http://llvm.org/viewvc/llvm-project?rev=259679&view=rev
>>>> Log:
>>>> ELF: Remove dead code.
>>>>
>>>> R_X86_64_DTPOFF64 relocs are for the dynamic linker.
>>>> Static linkers create them but don't consume them.
>>>
>>>
>>> Clang produces these in debug info and now LLD dies on trivial inputs
>>> like the object file produced with -g from `__thread long i;`. (full example
>>> here: http://reviews.llvm.org/P1652)
>>>
>>> -- Sean Silva
>>>
>>>>
>>>>
>>>> Modified:
>>>> lld/trunk/ELF/Target.cpp
>>>>
>>>> Modified: lld/trunk/ELF/Target.cpp
>>>> URL:
>>>> http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=259679&r1=259678&r2=259679&view=diff
>>>>
>>>> ==============================================================================
>>>> --- lld/trunk/ELF/Target.cpp (original)
>>>> +++ lld/trunk/ELF/Target.cpp Wed Feb 3 13:07:56 2016
>>>> @@ -873,9 +873,6 @@ void X86_64TargetInfo::relocateOne(uint8
>>>> case R_X86_64_DTPOFF32:
>>>> write32le(Loc, SA);
>>>> break;
>>>> - case R_X86_64_DTPOFF64:
>>>> - write64le(Loc, SA);
>>>> - break;
>>>> case R_X86_64_GOTPCREL:
>>>> case R_X86_64_PC32:
>>>> case R_X86_64_PLT32:
>>>>
>>>>
>>>> _______________________________________________
>>>> llvm-commits mailing list
>>>> llvm-commits at lists.llvm.org
>>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>>>
>>>
>>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
More information about the llvm-commits
mailing list