[PATCH] ld: Suppress warning for unsupported attribute from older GCC

H.J. Lu hjl.tools@gmail.com
Wed Jun 17 14:56:23 GMT 2020


On Wed, Jun 17, 2020 at 2:00 AM Jan Beulich <jbeulich@suse.com> wrote:
>
> On 17.06.2020 01:50, Alan Modra via Binutils wrote:
> > Using gcc4, I see
> > FAIL: Build pr25749-1b (-pie -fPIE)
> >
> > This is due to pr25749-1b.o from gcc4 having
> >  R_X86_64_REX_GOTPCRELX 0000000000000000 _binary_pr25749_1_c_size - 4
> > rather than the reloc generated by more recent compilers
> >  R_X86_64_PC32          0000000000000000 _binary_pr25749_1_c_size - 4
> >
> > And of course there isn't a problem with a GOT entry containing an
> > absolute symbol reference, so the error expected by the test isn't
> > seen.
> >
> > This doesn't concern me a great deal, but if you can fix the test
> > easily it might reduce the number of "bugs" reported for 2.35.
> >
>
> While at it, I'm also seeing a dozen unresolved testcases from (I
> think) that same set of tests, with sufficiently old gcc (4.3.4 in
> my case):
>
> .../ld/testsuite/ld-elf/pr25754-1a.c:9: warning: 'noclone' attribute directive ignored
> .../ld/testsuite/ld-elf/pr25754-1a.c:9: warning: 'noclone' attribute directive ignored
> ERROR: .../ld/testsuite/ld-elf/pr25754-1a.c: compilation failed
> UNRESOLVED: Build pr25754-1a ( )
>
> Would be nice if the ld testsuite passed again even on old hosts.
>

This is what I checked in.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ld-Suppress-warning-for-unsupported-attribute-from-o.patch
Type: text/x-patch
Size: 1723 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20200617/ed0b2159/attachment-0001.bin>


More information about the Binutils mailing list