[PATCH] RISC-V: Fix TLS and --gc-sections conflict.

Jim Wilson jimw@sifive.com
Thu Oct 4 20:34:00 GMT 2018


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



More information about the Binutils mailing list