x86: Add RESOLVED_LOCALLY_P
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 6 Oct 2017 07:26:17 +0000 (00:26 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 6 Oct 2017 07:26:17 +0000 (00:26 -0700)
Add RESOLVED_LOCALLY_P which returns TRUE if symbol is resolved to
local definition at link-time.

* elfxx-x86.h (RESOLVED_LOCALLY_P): New.
* elf32-i386.c (elf_i386_relocate_section): Use it.
* elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.

bfd/ChangeLog

index 612bf8595710d23ef8409dd8f6cdea92d3afdbcf..b43cdfac9b0d47738637572446073983918db7c8 100644 (file)
@@ -1,3 +1,9 @@
+2017-10-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elfxx-x86.h (RESOLVED_LOCALLY_P): New.
+       * elf32-i386.c (elf_i386_relocate_section): Use it.
+       * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
+
 2017-10-06  H.J. Lu  <hongjiu.lu@intel.com>
 
        * elf32-i386.c (X86_PCREL_TYPE_P): New.