From patchwork Thu Nov 8 20:13:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 995170 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-97080-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="dHQSa1zK"; 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 42rZHL1Nmgz9s7h for ; Fri, 9 Nov 2018 07:13:50 +1100 (AEDT) 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-transfer-encoding; q=dns; s=default; b=Tt9jxAlO0wFPbn+n 6C9d++gumEWcrZ7TlReFpSFvqdeUDM52VceVGzFnW2SUtYb94fu3tTPqNcNVYwlO x2y4czn+LLccUeHe72sMcgWbRHIfNXpMCOLkRTjWpl366lTx0O+DN7dmHYJECjsO ZPAF+Zh+4iHyfZdy9s33tfOYXtU= 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-transfer-encoding; s=default; bh=kC+Zyq8cWa7467IMwMUyb9 pa1xE=; b=dHQSa1zKqAd4VbNcdkzBIelZCajXhftCBa7IFW7fZhp4TWL+dRwlFr 2CHheq5RidDSHhzW7U+5wtc7D2UiruPiJMgioRVzPHwek0UelITiw0d2/prc9l/I OHYgMrT8GvT7QGilx2bPnouDm/TLrfGzcOi6y4fkJxLbt9QBwkOo0= Received: (qmail 18778 invoked by alias); 8 Nov 2018 20:13:44 -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 18060 invoked by uid 89); 8 Nov 2018 20:13:44 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.2 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy=capabilities, ignores, consumer, HContent-Transfer-Encoding:8bit X-HELO: mga18.intel.com From: "H.J. Lu" To: libc-alpha@sourceware.org Subject: [PATCH 0/2] elf: Update GNU_PROPERTY_X86_XXX macros Date: Thu, 8 Nov 2018 12:13:38 -0800 Message-Id: <20181108201340.29845-1-hjl.tools@gmail.com> MIME-Version: 1.0 This set of patches updates GNU_PROPERTY_X86_XXX macros according to the x86 program property in x86-64 psABI: https://github.com/hjl-tools/x86-psABI/wiki/x86-64-psABI-property.pdf The NT_GNU_PROPERTY_TYPE_0 note is used to describe features and capabilities supported by ELF binaries. Consumers of ELF binaries can consult the NT_GNU_PROPERTY_TYPE_0 note to make appropriate decisions. If a consumer of ELF binaries ignores NT_GNU_PROPERTY_TYPE_0 note, nothing is changed. The new GNU_PROPERTY_X86_UINT32_VALID bit is used by _dl_process_cet_property_note to detect if the NT_GNU_PROPERTY_TYPE_0 note is generated by updated linkers so that it can stop checking for invalid .note.gnu.property section. H.J. Lu (2): elf: Update GNU_PROPERTY_X86_XXX macros [BZ #23797] x86/CET: Stop if the GNU_PROPERTY_X86_UINT32_VALID bit is set elf/elf.h | 98 ++++++++++++++++++++++++++++++++----------- sysdeps/x86/dl-prop.h | 6 +++ 2 files changed, 79 insertions(+), 25 deletions(-)