From patchwork Thu Jul 14 15:10:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 72016 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp130047qga; Thu, 14 Jul 2016 08:11:23 -0700 (PDT) X-Received: by 10.66.248.65 with SMTP id yk1mr23905400pac.56.1468509082928; Thu, 14 Jul 2016 08:11:22 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id l189si4691926pfl.125.2016.07.14.08.11.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jul 2016 08:11:22 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-71847-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-71847-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-71847-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com 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:cc:subject:date:message-id; q=dns; s= default; b=PwUsmxyFIr/VtGMQyFFeQ33jvz/8ITM0uxKHKBormFmfeW1g00L8C nyvbHrj9GBelY1hoHlxQfgncAwPY3lmr0tel5AXDmFeCj1P69QiFj+YsybZRI0zP EtYdJfRwXPSQ05Ouniz25ygLM622EEJaLZFhdCnyUXBc/49xAsPSJw= 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:cc:subject:date:message-id; s=default; bh=GZ+LQWjCCsDmP9VUJczir5wPsv8=; b=aeFMpQYfmNTga1uRJawVB63cL1Wy bDzZNUuzYBTp5f/Ke2j6NZg+ifSmPaXtDiQJAJkElAPJxiA3lkXn9I+0uPPWBkRT KKKkXtInXhxYXROKunq/7N2Aq4Csz6I/3fEkSY7YDcA/MPPVVwP5qr0X4fuiVR8p bruBaCKvkioqY+M= Received: (qmail 83070 invoked by alias); 14 Jul 2016 15:11:13 -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 83060 invoked by uid 89); 14 Jul 2016 15:11:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS, UPPERCASE_50_75 autolearn=ham version=3.3.2 spammy=raj X-HELO: mail-pa0-f66.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Qe/KKQhGhpBWTi0yi9vicB0CSIQ+SaGjbiLfLyuzrkg=; b=jtdUPI7TbI8zxh1BuFoBlmwggws7Nsk+5cZEBHNcUMnxHvx4HhfSZCvlzrV1wsMWUm HSov/5Q/xKmGYmXEWzh06koyauN2AcGQBkeyNYGVniHCqitMG4IwGR40Pu6KZx5pJEvb OgSAJTTIFOIhpTTTBbYTKzR5+12qVOOiqpYyXxDG3k1MUOW9KtSWS+7uMkJPohBaCmZo OhagopHquzOUBXRd99QtkiD0/Ov3knuwpgUpnSYSGVoajk4J7UPPrGwF2bVvW55YxOvN DGas8OmejYKQkQs55W2++gk9YlsCP2jGqOvY1ACmrQy8Q8YKIvO33sMTFMa0c/jzL6YX VOvw== X-Gm-Message-State: ALyK8tIlfN2UcRg1gbQLsHTjuobrUc7ZPlvt1WlWvE0+AYKeFvMzBx0W97JF56H+ONdaIw== X-Received: by 10.66.193.227 with SMTP id hr3mr11577450pac.28.1468509060677; Thu, 14 Jul 2016 08:11:00 -0700 (PDT) From: Khem Raj To: libc-alpha@sourceware.org Cc: Khem Raj Subject: [PATCH V2] elf: Define missing Meta architecture specific relocations Date: Thu, 14 Jul 2016 08:10:53 -0700 Message-Id: <20160714151053.20713-1-raj.khem@gmail.com> --- 2016-07-14 Ross Burton Khem Raj * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16, R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH, R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2, R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2, R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG, R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY, R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF, R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC, R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT, R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT, R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE, R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD, R_METAG_TLS_DTPOFF): New. elf/elf.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) -- 2.9.0 diff --git a/elf/elf.h b/elf/elf.h index b6112d9..04400ec 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -3682,6 +3682,53 @@ enum #define R_BPF_NONE 0 /* No reloc */ #define R_BPF_MAP_FD 1 /* Map fd to pointer */ +/* Imagination Meta specific relocations. */ + +#define R_METAG_HIADDR16 0 +#define R_METAG_LOADDR16 1 +#define R_METAG_ADDR32 2 /* 32bit absolute address */ +#define R_METAG_NONE 3 /* No reloc */ +#define R_METAG_RELBRANCH 4 +#define R_METAG_GETSETOFF 5 + +/* Backward compatability */ +#define R_METAG_REG32OP1 6 +#define R_METAG_REG32OP2 7 +#define R_METAG_REG32OP3 8 +#define R_METAG_REG16OP1 9 +#define R_METAG_REG16OP2 10 +#define R_METAG_REG16OP3 11 +#define R_METAG_REG32OP4 12 + +#define R_METAG_HIOG 13 +#define R_METAG_LOOG 14 + +/* GNU */ +#define R_METAG_GNU_VTINHERIT 30 +#define R_METAG_GNU_VTENTRY 31 + +/* PIC relocations */ +#define R_METAG_HI16_GOTOFF 32 +#define R_METAG_LO16_GOTOFF 33 +#define R_METAG_GETSET_GOTOFF 34 +#define R_METAG_GETSET_GOT 35 +#define R_METAG_HI16_GOTPC 36 +#define R_METAG_LO16_GOTPC 37 +#define R_METAG_HI16_PLT 38 +#define R_METAG_LO16_PLT 39 +#define R_METAG_RELBRANCH_PLT 40 +#define R_METAG_GOTOFF 41 +#define R_METAG_PLT 42 +#define R_METAG_COPY 43 +#define R_METAG_JMP_SLOT 44 +#define R_METAG_RELATIVE 45 +#define R_METAG_GLOB_DAT 46 + +/* TLS relocations */ +#define R_METAG_TLS_TPOFF 56 +#define R_METAG_TLS_DTPMOD 57 +#define R_METAG_TLS_DTPOFF 58 + __END_DECLS #endif /* elf.h */