From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id C00A721191 for ; Sat, 27 Jan 2024 00:56:02 +0100 (CET) Received: (qmail 5451 invoked by uid 550); 26 Jan 2024 23:53:45 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 5416 invoked from network); 26 Jan 2024 23:53:45 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706313348; x=1706918148; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ne3DWvfjJDE7gKUSSog02OKp1XXjyPDQ8GMrwNed2zc=; b=wkfobhG1JerJCTX3P/iuApiRbVBJScJtTOImfRJ0XkzkmvQePRkXpL/YX/Y2ArSFtj CbL8S6ByP0odFk9aeCAnXiUWdB3Idm/kHBbajNvHLRlww6TsWc+/JYAX/gnOXcbxOAD+ 8GbSExhLxgAucznWArLuCkGb8VDNGemZyFQagTnO9eS5G+U87sZFZF9JDD8bAweHLIK/ 2hO48TTyhcUAEcwPwWsIVpC1wmyRrhkL40L2yII1OaHtSP5Tzpm3WLwM/BSHUbcjU8qs eODN+jRIJ+93WDfy+sYMcxkLZjMR8sL0cevopRkifdM30Y4mO//EhV5mIbIaFoRBrbTQ jeAg== X-Gm-Message-State: AOJu0YwvLAg6Mf/fPyd0jDuV0Qaq1N1s5/Z007qB4kjfrG8MwWJwFRT4 L6A/gZchrXL7w/kBa5jUdTL3iR1SZyebua1lCmfvUleDFyOF6CBX/JAuwWDM X-Google-Smtp-Source: AGHT+IFvTmxPSIUItupxuY6huGZOhu4DcDfZ7UWVAS99dK6VFFsA6UEIQ0ZmQq4S5aKiUzH6Lkom9A== X-Received: by 2002:a05:6a00:bd5:b0:6db:7038:fc04 with SMTP id x21-20020a056a000bd500b006db7038fc04mr636942pfu.10.1706313347685; Fri, 26 Jan 2024 15:55:47 -0800 (PST) From: Fangrui Song To: musl@lists.openwall.com Cc: Fangrui Song Date: Fri, 26 Jan 2024 15:55:37 -0800 Message-Id: <20240126235537.148780-1-i@maskray.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [musl] [PATCH] elf.h: update RISC-V relocation types Note: Some relocation types were only used by binutils and accidentally exposed to previous versions of psABI (e.g. https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/205 https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/323). One of the values has been reused by GOT32_PCREL. --- include/elf.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/include/elf.h b/include/elf.h index 72d17c3a..ad3519ad 100644 --- a/include/elf.h +++ b/include/elf.h @@ -3254,6 +3254,7 @@ enum #define R_RISCV_TLS_DTPREL64 9 #define R_RISCV_TLS_TPREL32 10 #define R_RISCV_TLS_TPREL64 11 +#define R_RISCV_TLSDESC 12 #define R_RISCV_BRANCH 16 #define R_RISCV_JAL 17 @@ -3280,16 +3281,11 @@ enum #define R_RISCV_SUB16 38 #define R_RISCV_SUB32 39 #define R_RISCV_SUB64 40 -#define R_RISCV_GNU_VTINHERIT 41 -#define R_RISCV_GNU_VTENTRY 42 +#define R_RISCV_GOT32_PCREL 41 #define R_RISCV_ALIGN 43 #define R_RISCV_RVC_BRANCH 44 #define R_RISCV_RVC_JUMP 45 #define R_RISCV_RVC_LUI 46 -#define R_RISCV_GPREL_I 47 -#define R_RISCV_GPREL_S 48 -#define R_RISCV_TPREL_I 49 -#define R_RISCV_TPREL_S 50 #define R_RISCV_RELAX 51 #define R_RISCV_SUB6 52 #define R_RISCV_SET6 53 @@ -3297,6 +3293,14 @@ enum #define R_RISCV_SET16 55 #define R_RISCV_SET32 56 #define R_RISCV_32_PCREL 57 +#define R_RISCV_IRELATIVE 58 +#define R_RISCV_PLT32 59 +#define R_RISCV_SET_ULEB128 60 +#define R_RISCV_SUB_ULEB128 61 +#define R_RISCV_TLSDESC_HI20 62 +#define R_RISCV_TLSDESC_LOAD_LO12 63 +#define R_RISCV_TLSDESC_ADD_LO12 64 +#define R_RISCV_TLSDESC_CALL 65 #ifdef __cplusplus } -- 2.39.GIT