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: Jim Wilson <jimw at sifive dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Thu, 4 Oct 2018 13:34:34 -0700
- 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> <mvm8t3e5fhd.fsf@suse.de>
On Thu, Oct 4, 2018 at 12:38 AM Andreas Schwab <schwab@suse.de> wrote:
> On Okt 02 2018, Jim Wilson <jimw@sifive.com> wrote:
> > 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.
I checked in a fix. It turned out to be pretty simple, and looks
oddly familiar. I think I might have accidentally checked in the
wrong version of the patch before.
https://sourceware.org/ml/binutils/2018-10/msg00100.html
I didn't check against elfutils, but for a simple hello world program
I get an empty .tdata section before the patch, and none after the
patch.
Jim