From 53c9015eb06c26dfad149a6d53efa8fd513e30a7 Mon Sep 17 00:00:00 2001 From: Mattia Moffa Date: Thu, 9 Apr 2026 16:48:22 +0200 Subject: [PATCH] Simplify comment --- src/clang_sections.S | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/clang_sections.S b/src/clang_sections.S index bc5ac0d0..74b656a9 100644 --- a/src/clang_sections.S +++ b/src/clang_sections.S @@ -20,11 +20,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ -/* Workaround for GNU ld mishandling AT() on output sections when no input - * object contributes a matching section. Clang does not emit empty .data/.bss - * sections in object files (GCC does), so GNU ld fails to assign the correct - * LMA for the .data output section, producing a huge sparse binary. - * Including this object ensures .data and .bss exist as inputs. - */ +/* Force clang to emit .data and .bss sections, even if empty, to prevent the + * linker from mishandling ld scripts and creating sparse binaries by putting + * .data in RAM. */ .section .data .section .bss