From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 6BC9F1F55B for ; Mon, 18 May 2020 15:26:16 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 603E63893649; Mon, 18 May 2020 15:26:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 603E63893649 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1589815575; bh=Ckynxv1ePDmAay+tdPoLPYDN7BaGLOYh7u+UjkyBtrU=; h=To:Subject:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=U47xOO9cl9UUwL38rWNWrkLTB4BtyMuQ3XQtZiNCCLbnL/r4NfGzTQgbEDPJqT+po H9K+RyG/SI9grNaurTYnz/nPeXuq1z9qe+b3xh3XnJClAWH6UqIgK+msRsKU0eIdad WXy2inco8wYo6uMpF5vC9j/ye04fVPqcHDkFDFWY= Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by sourceware.org (Postfix) with ESMTP id 24DA7389203B for ; Mon, 18 May 2020 15:26:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 24DA7389203B Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-480-0XFSCiUwNxmMvxGE7L7KPA-1; Mon, 18 May 2020 11:26:11 -0400 X-MC-Unique: 0XFSCiUwNxmMvxGE7L7KPA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3F32480058A; Mon, 18 May 2020 15:26:10 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-112-142.ams2.redhat.com [10.36.112.142]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7564D1002394; Mon, 18 May 2020 15:26:09 +0000 (UTC) To: Szabolcs Nagy Subject: Re: [PATCH v3 02/13] elf.h: add aarch64 property definitions References: Date: Mon, 18 May 2020 17:26:08 +0200 In-Reply-To: (Szabolcs Nagy's message of "Fri, 15 May 2020 15:40:46 +0100") Message-ID: <87blml9sdr.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Florian Weimer via Libc-alpha Reply-To: Florian Weimer Cc: libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" * Szabolcs Nagy: > These property values are specified by the AArch64 ELF ABI and > binutils can create binaries marked with them. > > Reviewed-by: Adhemerval Zanella > --- > elf/elf.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/elf/elf.h b/elf/elf.h > index 5b5ce37d9e..197b557d15 100644 > --- a/elf/elf.h > +++ b/elf/elf.h > @@ -1319,6 +1319,12 @@ typedef struct > /* Application-specific semantics, hi */ > #define GNU_PROPERTY_HIUSER 0xffffffff > > +/* AArch64 specific GNU properties. */ > +#define GNU_PROPERTY_AARCH64_FEATURE_1_AND 0xc0000000 > + > +#define GNU_PROPERTY_AARCH64_FEATURE_1_BTI (1U << 0) > +#define GNU_PROPERTY_AARCH64_FEATURE_1_PAC (1U << 1) > + > /* The x86 instruction sets indicated by the corresponding bits are > used in program. Their support in the hardware is optional. */ > #define GNU_PROPERTY_X86_ISA_1_USED 0xc0000000 I checked that this matches the binutils definition. I think this can go in separately. Thanks, Florian