+2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/23169
+ * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
+ check pointer_equality_needed.
+
2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
* elf-linker-x86.h (elf_linker_x86_params): Add
&& h->def_regular
&& h->dynindx != -1
&& h->plt.offset != (bfd_vma) -1
- && h->type == STT_GNU_IFUNC
- && h->pointer_equality_needed)
+ && h->type == STT_GNU_IFUNC)
{
asection *plt_s;
bfd_vma plt_offset;
+2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/23169
+ * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
+ pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
+ * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
+ address.
+
2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
* NEWS: Mention -z report-relative-reloc.
"$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/libpr23169a.so" \
"-fPIE -O2 -g" \
{ pr23169b.c pr23169c.c } \
- {{readelf {--dyn-syms} pr23169c.rd} \
+ {{readelf {--dyn-syms} pr23169a.rd} \
{readelf {-r -W} pr23169b.rd}} \
"pr23169c" \
] \
{readelf {-r -W} pr23169b.rd}} \
"pr23169d" \
] \
- [list \
- "Build pr23169e" \
- "-pie -Wl,--no-as-needed,-z,now tmpdir/libpr23169b.so" \
- "-fPIE -O2 -g" \
- { pr23169b.c pr23169c.c } \
- {{readelf {--dyn-syms} pr23169c.rd} \
- {readelf {-r -W} pr23169b.rd}} \
- "pr23169e" \
- ] \
[list \
"Build pr23169f" \
"$NOPIE_LDFLAGS -Wl,--no-as-needed,-z,now tmpdir/libpr23169b.so" \
"-fPIE -O2 -g" \
{ pr23169b.c pr23169c.c } \
- {{readelf {--dyn-syms} pr23169c.rd} \
+ {{readelf {--dyn-syms} pr23169a.rd} \
{readelf {-r -W} pr23169b.rd}} \
"pr23169f" \
] \
"pass.out" \
"$NOPIE_CFLAGS -O2 -g" \
] \
- [list \
- "Run pr23169e" \
- "-pie -Wl,--no-as-needed,-z,now tmpdir/libpr23169b.so" \
- "" \
- { pr23169b.c pr23169c.c } \
- "pr23169e" \
- "pass.out" \
- "-fPIE -O2 -g" \
- ] \
[list \
"Run pr23169f" \
"$NOPIE_LDFLAGS -Wl,--no-as-needed,-z,now tmpdir/libpr23169b.so" \