From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 112387 invoked by alias); 6 May 2016 15:31:33 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 112371 invoked by uid 89); 6 May 2016 15:31:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,NO_DNS_FOR_FROM,RP_MATCHES_RCVD,UNWANTED_LANGUAGE_BODY autolearn=ham version=3.3.2 spammy=hongjiu.lu@intel.com, hongjiuluintelcom, H*R:D*gmail.com X-HELO: mga09.intel.com Received: from mga09.intel.com (HELO mga09.intel.com) (134.134.136.24) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 May 2016 15:31:22 +0000 Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 06 May 2016 08:31:13 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([172.25.70.218]) by FMSMGA003.fm.intel.com with ESMTP; 06 May 2016 08:31:13 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 1000) id 802F320018D; Fri, 6 May 2016 08:31:13 -0700 (PDT) Date: Fri, 06 May 2016 15:31:00 -0000 From: "H.J. Lu" To: binutils@sourceware.org Subject: [committed, PATCH] Define elf_backend_add_symbol_hook for Intel MCU Message-ID: <20160506153113.GA31682@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.6.0 (2016-04-01) X-SW-Source: 2016-05/txt/msg00065.txt.bz2 elf_backend_add_symbol_hook is undefined for FreeBSD. Define it for Intel MCU to support STB_GNU_UNIQUE for Intel MCU and NaCl. * elf32-i386.c (elf_backend_add_symbol_hook): Defined for Intel MCU. --- bfd/ChangeLog | 5 +++++ bfd/elf32-i386.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 093d7f5..c6a51c4 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2016-05-06 H.J. Lu + + * elf32-i386.c (elf_backend_add_symbol_hook): Defined for Intel + MCU. + 2016-05-05 H.J. Lu * elf32-i386.c (elf_i386_convert_load): Extract the GOT load diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index 483146b..df08dd4 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -6053,6 +6053,9 @@ elf32_iamcu_elf_object_p (bfd *abfd) #undef elf_backend_strtab_flags #undef elf_backend_copy_special_section_fields +#undef elf_backend_add_symbol_hook +#define elf_backend_add_symbol_hook elf_i386_add_symbol_hook + #include "elf32-target.h" /* Restore defaults. */ -- 2.5.5