From nobody Thu Jul 10 22:58:52 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bdVdT3Bk8z61gGS; Thu, 10 Jul 2025 22:58:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bdVdT116bz4PZv; Thu, 10 Jul 2025 22:58:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752188333; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2Q+o7FvckPxRF+3X3+QyEy9gZk+UQEAdwt5pobM5Sp0=; b=q2qeHauoEpD3v8aKXnwa7NVai9j+ujg3i3u8m5cQQkSh+CCaqlFs5rLS4sl5Ev+mFZTf5N q5CNqI5nGKNIdrLmnF49Ch6HIonwfrjKDGob1fcFg7jxlDbZcWGhIu1sqvyRzi3CtPTez0 Ullr21Czw43dLNbj3TTwkuQgMLI2P20+3yYjkAiovDCXPqlXqRGJX1pa0lT9nea6QNaKex 8Ktvt13TXWoluIYFB1Nz4EIHFks00FBNxE+oaPHSJ2sYwQpv+YYS2YrS+K5s8xyqRSbBMj 3q1dRxbXSooIsHYQWJVr8h7Mc8PSR1kqyFyMewiYB54jUkD1/wZi+AxTWttaLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752188333; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2Q+o7FvckPxRF+3X3+QyEy9gZk+UQEAdwt5pobM5Sp0=; b=qvJrujsgThYSwwYaBcx3o7mMfGiJmToC0twrgCGQbXzssICfAJcM2lKUUlUi9bJiPe+1Jn k2sAN3M4sTr6/ii8722wAQ4l3O8c1b/4tFuuvrYMu968em0FZHP1tVutR9o0P/EDup514R 3FeL/1/2K9LAYo7aBPqwvnF7ORNz+RtdHogbq+e86TNHfraIRyDslhFpQ7w+GfhA4BnSt8 596u65UK0Z3KQPuBDivPR6yGoK9qhV38lY3XqYFDP1BE1eiQf40xOjeFT4mlSf9Ggw5tqp W4A7JlWI29yQYoUkCDEAq2suzhRYItJ3MwIvYPGEyuviNvWH18bKVt8AzbNd+w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1752188333; a=rsa-sha256; cv=none; b=edQ8y0dMpPfh1/jC5BAXyUAYpV79CjJ2+uVgJ9IjSBLO3jJjyzRX5EJ8fKYBAsHceaqFTy 7ZKd97lc0f6iwZ9ul1NmcUaaL/tP1k0PKl2NLeKY9YzuT1lv3dRGWjbc60xHJ7ppByhXH0 g9pIO6272rkiClajjXXhDc58vgQL3CkT0srn2p35vBHcerWooAmbiyo3E3YVJAViywxn/v P0CaZT+n/5eim6fsbBtdaWQ1QnGVkdVw2xDke1XPZl0u32PBAw7ZCRiEsto5quSidsT/Tv BI88ppv+W7p5gN8UCCGu8P1FHMv6dPSv4npRJYjZyrKO7PANcEV0790Kw9ygJQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bdVdT02xbz1Qm3; Thu, 10 Jul 2025 22:58:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 56AMwqr4035207; Thu, 10 Jul 2025 22:58:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 56AMwqdq035204; Thu, 10 Jul 2025 22:58:52 GMT (envelope-from git) Date: Thu, 10 Jul 2025 22:58:52 GMT Message-Id: <202507102258.56AMwqdq035204@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jessica Clarke Subject: git: d26f481bcdfe - main - sys: Delete stale comments in sys/elf_common.h List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jrtc27 X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d26f481bcdfec9354614ccc0f7f694bd7bcc5a6c Auto-Submitted: auto-generated The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=d26f481bcdfec9354614ccc0f7f694bd7bcc5a6c commit d26f481bcdfec9354614ccc0f7f694bd7bcc5a6c Author: Jessica Clarke AuthorDate: 2025-07-10 22:58:06 +0000 Commit: Jessica Clarke CommitDate: 2025-07-10 22:58:06 +0000 sys: Delete stale comments in sys/elf_common.h Originally the relocations for RISC-V were partitioned into dynamic and static (with those that are both being classed as dynamic), but they were packed next to each other, and so as new relocations were added they were allocated sequentially, at the end of the static block, even if really dynamic, R_RISCV_IRELATIVE being the first such case (and only one we currently have a definition for). Delete the misleading comments. Fixes: 4b88ccbc79cc ("Sync relocation definitions") MFC after: 1 week --- sys/sys/elf_common.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/sys/elf_common.h b/sys/sys/elf_common.h index 87460aae2dd4..61e1afdfe5c4 100644 --- a/sys/sys/elf_common.h +++ b/sys/sys/elf_common.h @@ -1352,7 +1352,6 @@ typedef struct { * RISC-V relocation types. */ -/* Relocation types used by the dynamic linker. */ #define R_RISCV_NONE 0 #define R_RISCV_32 1 #define R_RISCV_64 2 @@ -1365,8 +1364,6 @@ typedef struct { #define R_RISCV_TLS_DTPREL64 9 #define R_RISCV_TLS_TPREL32 10 #define R_RISCV_TLS_TPREL64 11 - -/* Relocation types not used by the dynamic linker. */ #define R_RISCV_BRANCH 16 #define R_RISCV_JAL 17 #define R_RISCV_CALL 18