This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] RISC-V: Fix TLS and --gc-sections conflict.
- From: Andreas Schwab <schwab at suse dot de>
- To: Jim Wilson <jimw at sifive dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Thu, 04 Oct 2018 09:38:06 +0200
- Subject: Re: [PATCH] RISC-V: Fix TLS and --gc-sections conflict.
- References: <20180802231457.12493-1-jimw@sifive.com> <mvmsh1o65is.fsf@suse.de> <CAFyWVaZqTOkTU6qTYCrmQWD2WTf4bxky6onR0PDhwcSkqg=ekw@mail.gmail.com>
On Okt 02 2018, Jim Wilson <jimw@sifive.com> wrote:
> On Tue, Oct 2, 2018 at 2:51 AM Andreas Schwab <schwab@suse.de> wrote:
>> On Aug 02 2018, Jim Wilson <jimw@sifive.com> wrote:
>> > It gets merged into .tdata, which still gets optimized away if empty at the
>> > end.
>>
>> Does it? I don't see that happening. The linker now always generates a
>> .tdata section, moreover with the wrong type NOBITS if empty.
>
> Apparently not, as I can see it in a testcase now. Not sure where I
> made the mistake. But does this cause any actual problems? I didn't
> see any problems with my gcc testsuite run.
elflint is complaining, and that breaks the elfutils testsuite.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."