From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129915 invoked by alias); 10 Aug 2015 15:08:05 -0000 Mailing-List: contact gdb-testers-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-testers-owner@sourceware.org Received: (qmail 129900 invoked by uid 89); 10 Aug 2015 15:08:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.2 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: kwanyin.sergiodj.net Received: from kwanyin.sergiodj.net (HELO kwanyin.sergiodj.net) (176.31.208.32) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 10 Aug 2015 15:08:03 +0000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] Replace hidden with versioned in elf_link_hash_entry From: sergiodj+buildbot@redhat.com To: gdb-testers@sourceware.org Message-Id: <422f11824b3abf6c71042e2ee3aed572f250fc89@gdb-build> Date: Mon, 10 Aug 2015 15:08:00 -0000 X-SW-Source: 2015-q3/txt/msg06358.txt.bz2 *** TEST RESULTS FOR COMMIT 422f11824b3abf6c71042e2ee3aed572f250fc89 *** Author: H.J. Lu Branch: master Commit: 422f11824b3abf6c71042e2ee3aed572f250fc89 Replace hidden with versioned in elf_link_hash_entry This patch replaces the "hidden" field with the "versioned" field in elf_link_hash_entry so that we can avoid calling strchr and strrchr if the symbol is unversioned. * elf-bfd.h (elf_symbol_version): New enum. (elf_link_hash_entry): Replace hidden with versioned. * elflink.c (_bfd_elf_merge_symbol): Don't look for symbol version if the symbol is unversioned. Initialize versioned. (_bfd_elf_add_default_symbol): Don't look for symbol version if the symbol is unversioned or hidden. Initialize versioned. (elf_collect_hash_codes): Don't look for symbol version if the symbol is unversioned. (elf_collect_gnu_hash_codes): Likewise. (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise. (_bfd_elf_link_hash_copy_indirect): Check versioned instead of hidden. (elf_link_output_extsym): Likewise.