From patchwork Thu May 23 11:19:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 32826 Received: (qmail 10369 invoked by alias); 23 May 2019 11:19:50 -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 10354 invoked by uid 89); 23 May 2019 11:19:50 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: EUR03-AM5-obe.outbound.protection.outlook.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=l5oTMd3E1lpvqr21CJENY9Reo+rwc4IE7SJq9pe/FMs=; b=i3WLa4C+Eycx3F4FwfRJCvBPsc7yXftTEeVXBn7zEkrJuIAKy9kiJDsQ4Oi9Amj3m5MKvwGCYAhbzE4Cwb05Ei/B0lLmdAu8SA0iTEig3tDVS0QMl6ksDXfj5hzy4wRR2vbMZC3p/wgBDz/lt4BtKeJ46b6zDggwCohnV6duZXg= From: Szabolcs Nagy To: "libc-alpha@sourceware.org" CC: nd Subject: [PATCH glibc 1/2] aarch64: add STO_AARCH64_VARIANT_PCS and DT_AARCH64_VARIANT_PCS Date: Thu, 23 May 2019 11:19:44 +0000 Message-ID: <84aa1cdf-c988-fdba-0628-ae9d242dc8ca@arm.com> References: <3c35b5f5-b13b-5e75-f0ed-2cbf788d83cf@arm.com> In-Reply-To: <3c35b5f5-b13b-5e75-f0ed-2cbf788d83cf@arm.com> user-agent: Mozilla/5.0 (X11; Linux aarch64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 authentication-results: spf=none (sender IP is ) smtp.mailfrom=Szabolcs.Nagy@arm.com; x-ms-oob-tlc-oobclassifiers: OLM:4941; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED STO_AARCH64_VARIANT_PCS is a non-visibility st_other flag for marking symbols that reference functions that may follow a variant PCS with different register usage convention from the base PCS. DT_AARCH64_VARIANT_PCS is a dynamic tag that marks ELF modules that have R_*_JUMP_SLOT relocations for symbols marked with STO_AARCH64_VARIANT_PCS (i.e. have variant PCS calls via a PLT). 2019-05-22 Szabolcs Nagy * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define. (DT_AARCH64_VARIANT_PCS): Define. diff --git a/elf/elf.h b/elf/elf.h index bb13c870e2..ee7c779769 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -2864,6 +2864,13 @@ enum #define R_AARCH64_TLSDESC 1031 /* TLS Descriptor. */ #define R_AARCH64_IRELATIVE 1032 /* STT_GNU_IFUNC relocation. */ +/* AArch64 specific values for the Dyn d_tag field. */ +#define DT_AARCH64_VARIANT_PCS (DT_LOPROC + 5) +#define DT_AARCH64_NUM 6 + +/* AArch64 specific values for the st_other field. */ +#define STO_AARCH64_VARIANT_PCS 0x04 + /* ARM relocs. */ #define R_ARM_NONE 0 /* No reloc */