From patchwork Fri Dec 10 23:34:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stafford Horne X-Patchwork-Id: 48815 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DE0533857C76 for ; Fri, 10 Dec 2021 23:36:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE0533857C76 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1639179371; bh=r1UqO0prb7wO6SCP2V1tDw+iVCN73ZgBpaPz3KmcV6k=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=dMnwkK7LaKFHsC/i2fqRNue8Ep6dzqJVPhC5zjONHZJhXN5+eyKRcvKirtt1WJRQc GXGgqKnYpqyPk5Rjzb8r+tKzyTOtj1tbbxJeOKA6wFn0vfen0mV0FvUcreYNInh8Lc OBNx60KIaoyc6/ADoPBy8zsTRE6gLm8cqdIvHI30= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id 6477B3858031 for ; Fri, 10 Dec 2021 23:35:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6477B3858031 Received: by mail-pf1-x42d.google.com with SMTP id k64so9754891pfd.11 for ; Fri, 10 Dec 2021 15:35:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=r1UqO0prb7wO6SCP2V1tDw+iVCN73ZgBpaPz3KmcV6k=; b=DAUz9GZOtYaGfkMdPmkjCsBZ9S5K2yQgO1uPb23zKndq7tUCzYcO3XOrhOn23s43KQ 4fVBB9c2Y6go8IUefd0lf7kN/piJasAnhMACmWpmrMVYk+UWnTF0ipSz89L0TJBYNrn6 uER/T9YmAVNxZUjo6v8DBPIGTr6ibITq5p8st1X2a048gneIdhPkXtE/W2MiO6r+N9XB oo/O/hFtQMyGi81AaBpH/P1PtivlI0+jbilIjJ94MsZeeQEYc/AKa+c3s+yy/MUP1Inz khJETuO6IvVy0sewda4/y6pULOMvyKCW2JmBcNuLScAcjTcDjF7IqDbbCImp4zpqzNGR T7Cg== X-Gm-Message-State: AOAM533t5R7PCqbAxYm2t99jmJgIfkFmGqk2TnwTJqhIE3c/b41psYdV 5CNVXD68QbGiOnvKbi/3GJ3qrbBTDZU= X-Google-Smtp-Source: ABdhPJzlaR5ShFcHd2dPy9HEk6hSA05LoKjr5Jx27swBV9kStnQQp5UXBusn4A7REuH0CB9tooae0Q== X-Received: by 2002:a63:be4f:: with SMTP id g15mr40980943pgo.417.1639179307175; Fri, 10 Dec 2021 15:35:07 -0800 (PST) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id p14sm89012pjl.32.2021.12.10.15.35.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 15:35:06 -0800 (PST) To: GLIBC patches Subject: [PATCH v3 01/13] elf: Add reloc for OpenRISC Date: Sat, 11 Dec 2021 08:34:44 +0900 Message-Id: <20211210233456.4146479-2-shorne@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211210233456.4146479-1-shorne@gmail.com> References: <20211210233456.4146479-1-shorne@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org 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: , X-Patchwork-Original-From: Stafford Horne via Libc-alpha From: Stafford Horne Reply-To: Stafford Horne Cc: Openrisc Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" --- elf/elf.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Reviewed-by: Adhemerval Zanella diff --git a/elf/elf.h b/elf/elf.h index baa6c6693e..18458e4d04 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -4125,4 +4125,41 @@ enum #define R_ARC_TLS_LE_S9 0x4a #define R_ARC_TLS_LE_32 0x4b +/* OpenRISC 1000 specific relocs. */ +#define R_OR1K_NONE 0 +#define R_OR1K_32 1 +#define R_OR1K_16 2 +#define R_OR1K_8 3 +#define R_OR1K_LO_16_IN_INSN 4 +#define R_OR1K_HI_16_IN_INSN 5 +#define R_OR1K_INSN_REL_26 6 +#define R_OR1K_GNU_VTENTRY 7 +#define R_OR1K_GNU_VTINHERIT 8 +#define R_OR1K_32_PCREL 9 +#define R_OR1K_16_PCREL 10 +#define R_OR1K_8_PCREL 11 +#define R_OR1K_GOTPC_HI16 12 +#define R_OR1K_GOTPC_LO16 13 +#define R_OR1K_GOT16 14 +#define R_OR1K_PLT26 15 +#define R_OR1K_GOTOFF_HI16 16 +#define R_OR1K_GOTOFF_LO16 17 +#define R_OR1K_COPY 18 +#define R_OR1K_GLOB_DAT 19 +#define R_OR1K_JMP_SLOT 20 +#define R_OR1K_RELATIVE 21 +#define R_OR1K_TLS_GD_HI16 22 +#define R_OR1K_TLS_GD_LO16 23 +#define R_OR1K_TLS_LDM_HI16 24 +#define R_OR1K_TLS_LDM_LO16 25 +#define R_OR1K_TLS_LDO_HI16 26 +#define R_OR1K_TLS_LDO_LO16 27 +#define R_OR1K_TLS_IE_HI16 28 +#define R_OR1K_TLS_IE_LO16 29 +#define R_OR1K_TLS_LE_HI16 30 +#define R_OR1K_TLS_LE_LO16 31 +#define R_OR1K_TLS_TPOFF 32 +#define R_OR1K_TLS_DTPOFF 33 +#define R_OR1K_TLS_DTPMOD 34 + #endif /* elf.h */