From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90741 invoked by alias); 3 Nov 2017 18:40:56 -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 90731 invoked by uid 89); 3 Nov 2017 18:40:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1067 X-HELO: kwanyin.sergiodj.net Received: from kwanyin.sergiodj.net (HELO kwanyin.sergiodj.net) (158.69.185.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 03 Nov 2017 18:40:55 +0000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] x86: Remove func_pointer_refcount From: sergiodj+buildbot@sergiodj.net To: gdb-testers@sourceware.org Message-Id: <79b0c981b8f0c912208ec305d48e775bcb6d2624@gdb-build> Date: Fri, 03 Nov 2017 18:40:00 -0000 X-SW-Source: 2017-q4/txt/msg03661.txt.bz2 *** TEST RESULTS FOR COMMIT 79b0c981b8f0c912208ec305d48e775bcb6d2624 *** Author: H.J. Lu Branch: master Commit: 79b0c981b8f0c912208ec305d48e775bcb6d2624 x86: Remove func_pointer_refcount Since check_reloc is running after gc_sections, there is no need for reference count. If a function pointer relocation can be resolved at run-time, there is no need for PLT and it doesn't count as non-GOT/PLT relocation. func_pointer_refcount can be removed. * elf32-i386.c (elf_i386_check_relocs): Set plt.refcount to 1. Don't use func_pointer_refcount. Don't set plt.refcount nor non_got_ref for function pointer reference. * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. * elfxx-x86.c (elf_x86_allocate_dynrelocs): Don't use func_pointer_refcount. (_bfd_x86_elf_copy_indirect_symbol): Don't copy func_pointer_refcount. (_bfd_x86_elf_hide_symbol): Don't use func_pointer_refcount. * elfxx-x86.h (GENERATE_DYNAMIC_RELOCATION_P): Likewise. (elf_x86_link_hash_entry): Remove func_pointer_refcount.