From patchwork Mon Jun 20 23:04:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 638333 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3rYRJt0MhMz9t0N for ; Tue, 21 Jun 2016 09:05:01 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=tfVG/SCA; dkim-atps=neutral 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:in-reply-to :references; q=dns; s=default; b=rNZDVcd7D/QzSjWAEebE9j8p0qfo3II 4VZ2fLbggy7Pq7Dum8ue1OFfF6yOFk/Yr+9F5lKJ3bFgdT9FaON7+7v+yh0bcceY hq8rOFbg5UXpAYtc4XtwjollhDYaOsT2BfmuaVvvkZlC+3QP2chLw0w7bdfot54i xaDPHBvcLf/s= 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:in-reply-to :references; s=default; bh=XeiARlFXHo4j0Lhaex/EPeqDgI8=; b=tfVG/ SCAhfdnjASNv4zdyjW+ucLb6A1AwEjNosh92I3FvCU/fsPGkD9KPY5k2w+bk7z4n SSZ44H1uuWRMG//QIYUKt0iw5zIhaseABDUCtPP5hs90KkSLW74WguTP/xKg+jaQ t9/3ijf1AKLSj+5xw5gNTNZiZvTKE/ZQe71wtk= Received: (qmail 129467 invoked by alias); 20 Jun 2016 23:04:47 -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 129416 invoked by uid 89); 20 Jun 2016 23:04:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=Map, reserved X-HELO: mail-qk0-f194.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=jAML0jWNlTQbc+fNOYD9BIysJZqtMPKzy9V3TU+PVy4=; b=A008VBxddsF3HuTXqNzGaJ9nyDCKHeuH85HjldunqRP4r2RsruVgqkLmfWYM8doFwt D6K0EXMIQ0BNL36y8sNqgA/M9awVPNkxBqFKUGLUIB6WNMmD0AW8hmoP6IMIhYm/LSWf iIZQiEvAPwvwViDJ65DI26cV81qbMGsAMIblqWPim9yegUbSvZ53mvRPGAfK7XVnjdkq 9+ehgKuMB2Ae3sFmdJFiFjOZYpFIBiRFcEmSYq/YmWkSiCwSR4inBtxVuu19LE/4YQEk G7aV3lybdAbZ52yO01QWrj+qZ6HaGYuxOVJyD1d8X6XbAmQPSgjDFax3QPVgvUoBHKdf Thhw== X-Gm-Message-State: ALyK8tKGwmRSETu3yuyQQM5tDjwfkMU+ODFKXkKho3GOeSjrEPEA9E1KZ9+EXeNIhbquBA== X-Received: by 10.55.59.196 with SMTP id i187mr1692646qka.167.1466463883428; Mon, 20 Jun 2016 16:04:43 -0700 (PDT) From: Richard Henderson To: libc-alpha@sourceware.org Subject: [PATCH v2 2/2] elf.h: Add declarations for BPF Date: Mon, 20 Jun 2016 16:04:09 -0700 Message-Id: <1466463849-21440-3-git-send-email-rth@twiddle.net> In-Reply-To: <1466463849-21440-1-git-send-email-rth@twiddle.net> References: <1466463849-21440-1-git-send-email-rth@twiddle.net> The EM_BPF number has been officially assigned, though it has not yet been posted to the gabi webpage yet. * elf/elf.h (EM_BPF): New. (EM_NUM): Update. (R_BPF_NONE, R_BPF_MAP_FD): New. --- ChangeLog | 4 ++++ elf/elf.h | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 14892e6..2abe0b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2016-06-20 Richard Henderson + * elf/elf.h (EM_BPF): New. + (EM_NUM): Update. + (R_BPF_NONE, R_BPF_MAP_FD): New. + * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT, EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200, EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33, diff --git a/elf/elf.h b/elf/elf.h index 7fc09b9..b6112d9 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -359,7 +359,9 @@ typedef struct /* reserved 225-242 */ #define EM_RISCV 243 /* RISC-V */ -#define EM_NUM 244 +#define EM_BPF 247 /* Linux BPF -- in-kernel virtual machine */ + +#define EM_NUM 248 /* Old spellings/synonyms. */ @@ -3675,6 +3677,10 @@ enum #define R_TILEGX_NUM 130 +/* BPF specific declarations. */ + +#define R_BPF_NONE 0 /* No reloc */ +#define R_BPF_MAP_FD 1 /* Map fd to pointer */ __END_DECLS