From patchwork Fri Sep 29 21:31:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 23241 Received: (qmail 116987 invoked by alias); 29 Sep 2017 21:31:28 -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 116727 invoked by uid 89); 29 Sep 2017 21:31:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.5 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1264 X-HELO: mail-it0-f54.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=w1PBeiK6VwJofNu1RTEp2UL+ygEruPl2HRk0VObwvAw=; b=WeQJgdlFfCvwIqJ2INJHeTKD4uNiXMLmQLgxSiYmK1MT/C0rbQbjhvpBXoDWSFq+vp GtT7A+YMhSDGnHOGMfJKZigbXdahRzqUA0YlM/uABNnhTOSZmzfOLTK2hXe9V1/MG7rY xTsA9XCMg/K5yFMd+wfjA1p+9frp8D7Fa+HWm6QXadNfZJYejpm9XtXATmbtspxYPrG0 zlrCKiJ4HTaZtx4AD3YgnnjPP0RqN4HebkHGZ9UvhapYwWiWcMUckJB6otTYgAa4WUH3 uMiNxrkubvYjM18Lbqa+eArrdJ+BljT++X/O7ROtT3sN+8YDYqVnVHCfs5RgS0CH14DM Ngnw== X-Gm-Message-State: AMCzsaVCp8MlH9sWJ7K0Pj9H6u5HO8UTeI7H1tyiBADD5suycPo1pFpw uLvWtXEM/0zpYUfENaU/WaI255k/ X-Google-Smtp-Source: AOwi7QBlHT2Ezz3+hX739pkdEx0WLEe9Dcs27BetCWMbfzi42+hsjk/A1Nz/10HpiWE7BFBS6jXhgg== X-Received: by 10.36.40.13 with SMTP id h13mr9398713ith.48.1506720685450; Fri, 29 Sep 2017 14:31:25 -0700 (PDT) Date: Fri, 29 Sep 2017 14:31:19 -0700 From: "H.J. Lu" To: GNU C Library Subject: [PATCH] hppa: Check PIC instead of SHARED in start.S Message-ID: <20170929213118.GE2482@gmail.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.0 (2017-09-02) Since start.o may be compiled as PIC, we should check PIC instead of SHARED. OK for master? * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. --- sysdeps/hppa/start.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sysdeps/hppa/start.S b/sysdeps/hppa/start.S index 5db1ba960b..c7f59724ba 100644 --- a/sysdeps/hppa/start.S +++ b/sysdeps/hppa/start.S @@ -42,7 +42,7 @@ /* Have the linker create plabel words so we get PLABEL32 relocs and not 21/14. The use of 21/14 relocs is only supported in the latest dynamic linker. */ -#ifdef SHARED +#ifdef PIC .section .data.rel.ro,"aw",@progbits #else .section .rodata,"a",@progbits @@ -56,7 +56,7 @@ .word P%__libc_csu_fini .Lp__libc_csu_init: .word P%__libc_csu_init -#ifdef SHARED +#ifdef PIC .Lp__global: .word $global$ #endif @@ -101,7 +101,7 @@ _start: stw %r23, -56(%sp) /* Need to setup 1, 4, 5, and 7th arguments */ -#ifdef SHARED +#ifdef PIC /* load main (1st argument) */ addil LT'.Lpmain, %r19 ldw RT'.Lpmain(%r1), %r26 @@ -130,7 +130,7 @@ _start: /* void *stack_end (7th argument) */ stw %sp, -60(%sp) -#ifdef SHARED +#ifdef PIC /* load global */ addil LT'.Lp__global, %r19 ldw RT'.Lp__global(%r1), %dp