From patchwork Sun Jun 2 00:30:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jessica Clarke X-Patchwork-Id: 1108885 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-502154-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=jrtc27.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="khToDSZe"; dkim=pass (1024-bit key; unprotected) header.d=jrtc27.com header.i=@jrtc27.com header.b="DRkVdpth"; 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 45GfHY3kfRz9s4V for ; Sun, 2 Jun 2019 10:30:55 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; q=dns; s=default; b=goi3AhT/T7Y94Non a9InBPQhgcfsFKp6Jm/5spn03b+YVOS4UU1V+pQj38xD12zneD58ijw2bM5rUW3x zN70iQxI6EQZnxLI7j9oZ8bsKJSNUzl1Lz7O3tYlVon/3E8pE1k4yL2R3pxxX8lY H3SKRDWpT6SXSvHmaXfaW0MPsmk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=default; bh=aNUOQ/oLsM785SotHdljdZ dO2Uw=; b=khToDSZeKIzrYumS3+gLTmuKe3sF6vkQj97J6Qn3XNfLma5lWYLCJ+ 1vDrQMszPtGp1sv0EPdf1gQmXNWOe1xC5RzQS0BhiIh+sLMp9a9ICjUf1QfSPEYu llXipMt+7BAZrn010wHH495xavP/8kNKOUzRo17nP0GIhDaep1aGQ= Received: (qmail 102385 invoked by alias); 2 Jun 2019 00:30:44 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 102271 invoked by uid 89); 2 Jun 2019 00:30:32 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1051, libgcc, HX-Google-DKIM-Signature:W13g, H*RU:209.85.128.65 X-HELO: mail-wm1-f65.google.com Received: from mail-wm1-f65.google.com (HELO mail-wm1-f65.google.com) (209.85.128.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 02 Jun 2019 00:30:22 +0000 Received: by mail-wm1-f65.google.com with SMTP id 7so8088804wmo.2 for ; Sat, 01 Jun 2019 17:30:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jrtc27.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Tnt1J8d8uVPFeD6ksubQpdEUKJ44wEUAtwIH0UWPGIw=; b=DRkVdpthChBIcxRz3F2mQIR+/GKvqQPsSzH4XQGtrAb9YUaXqngYaOHO5C1NS4DR7W YgF+IZP4PLXanWWG2wMvA1MSKOKPUtoajgVSCuIITLm3PjBLBZzxxAYt2rJzP4k6ft6C wjWJ7OWvMUFL09b6WJjwO4D2PA8cjaYZgsK1k= Received: from Jamess-MacBook.local (global-184-8.nat-1.net.cam.ac.uk. [131.111.184.8]) by smtp.gmail.com with ESMTPSA id l7sm2987329wmh.20.2019.06.01.17.30.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Jun 2019 17:30:07 -0700 (PDT) Received: by Jamess-MacBook.local (Postfix, from userid 501) id 1D606204DAF1D6; Sun, 2 Jun 2019 01:30:07 +0100 (BST) From: James Clarke To: gcc-patches@gcc.gnu.org Cc: James Clarke Subject: [PATCH] Put __dso_handle in .sdata/.sbss on ia64 Date: Sun, 2 Jun 2019 01:30:03 +0100 Message-Id: <20190602003003.46487-1-jrtc27@jrtc27.com> MIME-Version: 1.0 The symbol is exposed to C by dso_handle.h, and since it's a single 8-byte pointer, it is just within the threshold for being in the small data (or bss) section, so code accessing it will use GP-relative addressing. Therefore we must put it in .sdata/.sbss in case our other data sections grow too big and we overflow the 22-bit relocation. libgcc/ * config/ia64/crtbegin.S (__dso_handle): Put in .sdata/.sbss rather than .data/.bss so it can be accessed via gp-relative addressing. --- libgcc/config/ia64/crtbegin.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgcc/config/ia64/crtbegin.S b/libgcc/config/ia64/crtbegin.S index 5b2f55936dd..213ccd7ab8b 100644 --- a/libgcc/config/ia64/crtbegin.S +++ b/libgcc/config/ia64/crtbegin.S @@ -45,11 +45,11 @@ dtor_ptr: .type __dso_handle,@object .size __dso_handle,8 #ifdef SHARED - .section .data + .section .sdata __dso_handle: data8 __dso_handle #else - .section .bss + .section .sbss .align 8 __dso_handle: .skip 8