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/binutils-2_28-branch] Call target specific add_symbols function


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

commit 756680a6cfabcf4370a5ebb596bc85a9529ea7e2
Author: Alan Modra <amodra@gmail.com>
Date:   Fri Dec 23 23:43:54 2016 +1030

    Call target specific add_symbols function
    
    This allows targets that have target specific code to add object
    symbols to make use of the generic archive handling.
    
    	* linker.c (generic_link_check_archive_element): Call target
    	bfd_link_add_symbols to add element symbols.

Diff:
---
 bfd/ChangeLog | 5 +++++
 bfd/linker.c  | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ce8822e..5e642d7 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
 2016-12-23  Alan Modra  <amodra@gmail.com>
 
+	* linker.c (generic_link_check_archive_element): Call target
+	bfd_link_add_symbols to add element symbols.
+
+2016-12-23  Alan Modra  <amodra@gmail.com>
+
 	* linker.c (generic_link_add_symbols): Delete.  Merge into..
 	(_bfd_generic_link_add_symbols): ..here.
 	(generic_link_check_archive_element_no_collect): Delete.
diff --git a/bfd/linker.c b/bfd/linker.c
index 9763b84..3bee361 100644
--- a/bfd/linker.c
+++ b/bfd/linker.c
@@ -1064,7 +1064,7 @@ generic_link_check_archive_element (bfd *abfd,
 	    return FALSE;
 	  /* Potentially, the add_archive_element hook may have set a
 	     substitute BFD for us.  */
-	  return generic_link_add_object_symbols (abfd, info);
+	  return bfd_link_add_symbols (abfd, info);
 	}
 
       /* P is a common symbol.  */


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