This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Don't check object claimed by plugin


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f0bf6bfd70fd550a0b01f8bef938a205702b0465

commit f0bf6bfd70fd550a0b01f8bef938a205702b0465
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Apr 13 04:58:16 2015 -0700

    Don't check object claimed by plugin
    
    When ELF linker backend searchs the symbol table of an archive element,
    it should skip the object which has been claimed by plugin.
    
    	PR ld/18250
    	* elflink.c (elf_link_is_defined_archive_symbol): Return FALSE
    	if the object has been claimed by plugin.

Diff:
---
 bfd/ChangeLog | 6 ++++++
 bfd/elflink.c | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 207884a..729630d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2015-04-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR ld/18250
+	* elflink.c (elf_link_is_defined_archive_symbol): Return FALSE
+	if the object has been claimed by plugin.
+
 2015-04-11  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* elf32-i386.c (elf_i386_relocate_section): Replace SYMBOLIC_BIND
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 98d3108..e3d1abe 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -2936,6 +2936,10 @@ elf_link_is_defined_archive_symbol (bfd * abfd, carsym * symdef)
   if (abfd == NULL)
     return FALSE;
 
+  /* Return FALSE if the object has been claimed by plugin.  */
+  if (abfd->plugin_format == bfd_plugin_yes)
+    return FALSE;
+
   if (! bfd_check_format (abfd, bfd_object))
     return FALSE;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]