aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/user
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/user')
-rw-r--r--src/lib/user/user.lds6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/user/user.lds b/src/lib/user/user.lds
index cc6d6c0..27ea4be 100644
--- a/src/lib/user/user.lds
+++ b/src/lib/user/user.lds
@@ -16,7 +16,11 @@ SECTIONS
. = DATA_SEGMENT_ALIGN (0x1000, 0x1000);
.data : { *(.data) }
- .bss : { *(.bss) }
+ .bss : {
+ *(.bss)
+ /* Get the end of the bss segment as a symbol linkable from C */
+ _end_bss = .;
+ }
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }