From nobody Fri Jan 24 13:36:53 2025 X-Original-To: dev-commits-src-all@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 4Yff45531Bz5lQjw; Fri, 24 Jan 2025 13:36: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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yff452VRhz3NQm; Fri, 24 Jan 2025 13:36:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737725813; 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=bmTf9eZ+3MoTEc6Rv/o62Ed5virgYF4cP57wuNwnW1s=; b=IdHqJf1MGqEBWZVqN6Wfu4ebIZEeXMHqHEVgKUI/oLiMtOZZba7EUkqosPHpjn3ZajSvub qCqCD3Lrm31gWiZtZreM5ZFrlJDmoducsc6Te54t6nFs/oevE/Scjb6J89n3y/034AJwso 9H2ZZkASYFyha2eTYuaLbwzNYmugGoZJ3Cd+T/xQZvIQN+hhxzxYUY+QhIXWM5WhsEeMct g4QZR9r7gFf7zt8o1agTXOB+24gwm5jKiPlJyiHRad4JkzQ9eLeYMOyIFNt41xZ9FrmedE zbZoOCS9txXQa8uaGZnm6Rh0rAhabpQrIrhxpQ81LLZVg09uuZ1ORjrLDEtrsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737725813; 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=bmTf9eZ+3MoTEc6Rv/o62Ed5virgYF4cP57wuNwnW1s=; b=WhY9UJiHrLItotoSYXq0YqqLHCLu4ItBFxfQdBs/pnYGkn3WhoTk3n2PeDSt+6NW+b2tHE l8nEnObOEa1icFBDeE0MM1gt6uMyRiuMXwJgtGu1OUhDGw4msBjHsTXsU1Vhtq+9Tw1m+2 WJeA3jJasDG+LHJa/wBa2fz8xVSzvrG7zaAvDqy8zRgmjYitvdqXHOZeDQ8t/CIq9e6YtW aM2NNGqRXQ5XhiDgq6ZY5s6TlIDFLZz8so6pKeLzgG9jWLp+BQ0imi8AY0uOm7FFqZKhhz fZ7eMNvDkHVG0E4CZj8SaWKMYVAG1t8bNA6yHkdN3YkD3K2SG6iBDzJCgVbyJA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737725813; a=rsa-sha256; cv=none; b=vUmXw7sGcxZc5MKfuY8xzBGxtb0J7d6q8ey/IRW2fJdoIYUgFqPqy4dqhbSexnExakJhU7 NepqrhYv4KJXlEWYwcsBptJvjNlpHW7YSAPacDLvGVb7ImUJr7FjVlx7qOZ8OjiMBPPMgb ka2G9xtkb48ecAN4T4Vtd7ISvHvcJXrLti5DcS2V6w+je32caEq/6Lr05liv2+MQRB3sie C/SkVVEpPIalzvmhQdhuvud/sIv9muAvMqZ+KjB2l1eBcoTonnkQl13JLYT5fv8s+XWD3V j7XwBcxY/MSvbSVWskVfuLEHhk3Xez5L4TEQXVTPZeIp6NCPJBcDUPreruh1Qg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4Yff451XGkzB4L; Fri, 24 Jan 2025 13:36: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 50ODar23094437; Fri, 24 Jan 2025 13:36:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50ODarMa094434; Fri, 24 Jan 2025 13:36:53 GMT (envelope-from git) Date: Fri, 24 Jan 2025 13:36:53 GMT Message-Id: <202501241336.50ODarMa094434@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 6700e2d963ff - main - csu: add the "Retain" flag to notes sections flag List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6700e2d963ff0475cc5cd444e92ce40855643084 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=6700e2d963ff0475cc5cd444e92ce40855643084 commit 6700e2d963ff0475cc5cd444e92ce40855643084 Author: Konstantin Belousov AuthorDate: 2025-01-24 11:32:53 +0000 Commit: Konstantin Belousov CommitDate: 2025-01-24 13:36:41 +0000 csu: add the "Retain" flag to notes sections flag It should make the notes immune against --gc-sections. Reported and tested by: bapt Sponsored by: The FreeBSD Foundation MFC after: 1 week --- lib/csu/common/crtbrand.S | 2 +- lib/csu/common/feature_note.S | 2 +- lib/csu/common/ignore_init_note.S | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/csu/common/crtbrand.S b/lib/csu/common/crtbrand.S index b59e2fd8056b..a06f72daa99d 100644 --- a/lib/csu/common/crtbrand.S +++ b/lib/csu/common/crtbrand.S @@ -36,7 +36,7 @@ * for more information. */ - .section .note.tag,"aG",%note,.freebsd.noteG,comdat + .section .note.tag,"aGR",%note,.freebsd.noteG,comdat .p2align 2 .4byte 2f-1f .4byte 4f-3f diff --git a/lib/csu/common/feature_note.S b/lib/csu/common/feature_note.S index 5c1d56d4cde1..fb9f6141699e 100644 --- a/lib/csu/common/feature_note.S +++ b/lib/csu/common/feature_note.S @@ -29,7 +29,7 @@ #include #include "notes.h" - .section .note.tag,"a",%note + .section .note.tag,"aR",%note .p2align 2 .4byte 2f-1f .4byte 4f-3f diff --git a/lib/csu/common/ignore_init_note.S b/lib/csu/common/ignore_init_note.S index 57fb4e8f4d51..d78be61f17a9 100644 --- a/lib/csu/common/ignore_init_note.S +++ b/lib/csu/common/ignore_init_note.S @@ -30,7 +30,7 @@ #include "notes.h" - .section .note.tag,"a",%note + .section .note.tag,"aR",%note .p2align 2 .4byte 2f-1f .4byte 4f-3f