gold: Remove the circular IFUNC dependency in ifuncmain6pie
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 18 Jan 2021 00:43:45 +0000 (16:43 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 18 Jan 2021 00:43:59 +0000 (16:43 -0800)
commit25294ff049728a081c703b68f848d2cc04eef483
tree3f0e99fb655332407dad496b2733023d64a9ed0a
parentd46153313bb24f0028d3160fd171bb46dec24ed2
gold: Remove the circular IFUNC dependency in ifuncmain6pie

On Fedora 33 x86-64 with glibc 2.32-3, ifuncmain6pie failed with:

./ifuncmain6pie: IFUNC symbol 'foo' referenced in './ifuncmod6.so' is defined in the executable and creates an unsatisfiable circular dependency.
FAIL ifuncmain6pie (exit status: 127)

Remove non-JUMP_SLOT relocations against foo in ifuncmod6.so, which
trigger the circular IFUNC dependency.

* testsuite/ifuncmain6pie.c: Remove non-JUMP_SLOT relocations
against foo in ifuncmod6.so.
* testsuite/ifuncmod6.c: Likewise.
gold/ChangeLog
gold/testsuite/ifuncmain6pie.c
gold/testsuite/ifuncmod6.c