On Wed, 2022-07-27 at 09:34 +0800, Lulu Cheng wrote:
> > -- >8 --
> >
> > The assembly produced with -mexplicit-relocs is not supported by gas
> > <=
> > 2.39. Check if the assembler supports explicit relocations and set
> > the
> > default accordingly.
> Looks good to me.
Pushed r13-1851.
在 2022/7/26 下午10:15, Xi Ruoyao 写道:
The following should work. I've tested it locally by building GCC with
both old (2.38 with patch) and new (trunk) Binutils. Ok for trunk?
I simply checked as instead of ld. If as supports explicitly
relocations, the produced .o file won't be supported by a
> > Maybe we can add a check in gcc/configure.ac to see if gcc_cv_ld
> > supports %got_pc_hi20 and adjust the default for -m[no]-explicit-relocs?
> I think this is a good way, I'll look at adding a check.
The following should work. I've tested it locally by building GCC with
both old (2.38 with