From 95f973fe98cbdc5ad1b31e1805c2e713fbb65378 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Sat, 27 May 2023 10:20:45 +0100 Subject: [PATCH] ensure correct address for __bss_start__ --- nx/switch.ld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nx/switch.ld b/nx/switch.ld index eb781a35..4d1deb1c 100644 --- a/nx/switch.ld +++ b/nx/switch.ld @@ -134,7 +134,6 @@ SECTIONS SORT(CONSTRUCTORS) } :data - __bss_start__ = .; .bss ALIGN(8) : { *(.dynbss) @@ -147,7 +146,8 @@ SECTIONS . += + SIZEOF(.tdata) + SIZEOF(.tbss); __tls_end = .; } : data - __bss_end__ = .; + __bss_start__ = ADDR(.bss); + __bss_end__ = ADDR(.bss) + SIZEOF(.bss); __end__ = ABSOLUTE(.) ;