From patchwork Mon Nov 25 16:05:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 1200484 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-107351-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="nuYJRYhJ"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47MBh81QRMz9sQw for ; Tue, 26 Nov 2019 03:05:11 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:cc:date:message-id :mime-version:content-type; q=dns; s=default; b=KMGBA3kAYct+3wgO Pjg7PfJ1OP0v8bV3TIbbPKhxY4UK/TjAm9nTB76DqCj0PrJ5DYFH8NMaYGY2cmwO xB8X9M88vANkEQ70bVf553qi7un3OisHiY6IRvOl0EDwNyqqDsiXDISXscqU1595 5cuwPhguW05I+yN9RCOfilgwgwQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:cc:date:message-id :mime-version:content-type; s=default; bh=nlmxIuErNl7QoJo1fKM5gr wKdPU=; b=nuYJRYhJrpTQPBXTYfJ0Zb/r2hX2PWm7Hju7LPwEiqMFcPvezhg8ex kdVUIQ3BndcHBTHRnHsR3XHrRWQAFiXPZQ97MPlMfVok9fl2JMui8jCSXGakDIDI MKxzMHArnm0Qg2e6GjMxFl/wRiR4loyowcwpAsGg+vPdJ3rKWOumE= Received: (qmail 53960 invoked by alias); 25 Nov 2019 16:05:05 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 53951 invoked by uid 89); 25 Nov 2019 16:05:04 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-15.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx1.suse.de From: Andreas Schwab To: libc-alpha@sourceware.org Subject: [PATCH] sysdeps/riscv/start.S: rename .Lload_gp to load_gp (bug 24376) CC: palmer@dabbelt.com X-Yow: Hey, waiter! I want a NEW SHIRT and a PONY TAIL with lemon sauce! Date: Mon, 25 Nov 2019 17:05:00 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Renaming the symbol keeps the label in the symbol table as a normal local label, so that `objdump -d' can pick it up as an anchor. Reviewed-by: Palmer Dabbelt Reviewed-by: Alistair Francis --- sysdeps/riscv/start.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysdeps/riscv/start.S b/sysdeps/riscv/start.S index bcbce58ffe..dee984131c 100644 --- a/sysdeps/riscv/start.S +++ b/sysdeps/riscv/start.S @@ -47,7 +47,7 @@ ENTRY (ENTRY_POINT) .cfi_label to force starting the FDE. */ .cfi_label .Ldummy cfi_undefined (ra) - call .Lload_gp + call load_gp mv a5, a0 /* rtld_fini. */ /* main may be in a shared library. */ la a0, main @@ -68,7 +68,7 @@ END (ENTRY_POINT) needs to be initialized before calling __libc_start_main in that case. So we redundantly initialize it at the beginning of _start. */ -.Lload_gp: +load_gp: .option push .option norelax lla gp, __global_pointer$ @@ -76,7 +76,7 @@ END (ENTRY_POINT) ret .section .preinit_array,"aw" - .dc.a .Lload_gp + .dc.a load_gp /* Define a symbol for the first piece of initialized data. */ .data