From patchwork Thu Jul 4 08:24:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 1127407 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=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-103434-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="Ixe/vQVa"; 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 45fWHW6161z9s4Y for ; Thu, 4 Jul 2019 18:24:55 +1000 (AEST) 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:date:message-id:mime-version :content-type; q=dns; s=default; b=vaSWn3Q55WlsKK5OAysYmexjBDuDf vpT36OcyrKWamd1jkMVNgvY65E/b9BwYG6yMGAEcitNTcT9Tp3ZfspSX/A1Ep2NK lHmuRsO7r3Hj6Bmq5NWeg0+Yx91Z1dg+cIdDAQolw8CubHcX9U+7EjiMrm4vOyFW xOt8UW/oY7lD9k= 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:date:message-id:mime-version :content-type; s=default; bh=l3owKrFXJCAfFHkBgjuaC5sXvGc=; b=Ixe /vQVa4QQwKsLkV/AEUfpu30p+Dy4gHOJ43UDsqOjQGom/YdbJ/cmLO5IxfR8dJ+o wN35f2DiWZOOty9IgnsuC0tI4X+5ey2IgA7tfG39zD2c1cgZmeGukNtxg1N9NUKd Cn28zwSO2wK0wuJKe2x4m4G69IksWx4547td/R94= Received: (qmail 23680 invoked by alias); 4 Jul 2019 08:24:49 -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 23671 invoked by uid 89); 4 Jul 2019 08:24:49 -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] riscv: restore ABI compatibility (bug 24484) X-Yow: Ask me the DIFFERENCE between PHIL SILVERS and ALEXANDER HAIG!! Date: Thu, 04 Jul 2019 10:24:45 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) MIME-Version: 1.0 The contents of the dynamic section are part of the ABI, thus DL_RO_DYN_SECTION cannot be changed. [BZ #24484] * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define. --- sysdeps/riscv/ldsodefs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sysdeps/riscv/ldsodefs.h b/sysdeps/riscv/ldsodefs.h index 5ec607e867..d7531b707a 100644 --- a/sysdeps/riscv/ldsodefs.h +++ b/sysdeps/riscv/ldsodefs.h @@ -38,6 +38,11 @@ struct La_riscv_retval; struct La_riscv_retval *, \ const char *); +/* Although the RISC-V ABI does not specify that the dynamic section has + to be read-only, it needs to be kept for ABI compatibility. */ + +#define DL_RO_DYN_SECTION 1 + #include_next #endif