From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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) From: Stafford Horne To: GLIBC patches Cc: Openrisc , Stafford Horne 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 Content-Transfer-Encoding: 8bit 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-List-Received-Date: Fri, 10 Dec 2021 23:35:09 -0000 --- elf/elf.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) 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 */ -- 2.31.1