If a symbol is not defined in a regular file, and we are not generating
a shared library, then set the symbol to its location in the .plt. This
is required to make function pointers compare as equal between the normal
executable and the shared library.
* elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
instead of bfd_link_pic, for building shared library.
+2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
+ instead of bfd_link_pic, for building shared library.
+
2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
PR gas/22791
location in the .plt. This is required to make function
pointers compare as equal between the normal executable and
the shared library. */
- if (! bfd_link_pic (info)
+ if (! bfd_link_dll (info)
&& !h->def_regular)
{
if (use_plt_got)