vmbase: sections.ld: Fix bin_end as LMA
As the location counter seems to keep counting from the VMA addresses
(in the writable_data MEMORY), manually compute the linker variable to
ensure that it points to the actual end of the binary, in the image
MEMORY.
Bug: 238050226
Test: atest vmbase_example.integration_test
Change-Id: I00616aaebee82a82e2860ce22966a40e374d49c0
diff --git a/vmbase/sections.ld b/vmbase/sections.ld
index 88033e3..87b909d 100644
--- a/vmbase/sections.ld
+++ b/vmbase/sections.ld
@@ -80,7 +80,7 @@
data_lma = LOADADDR(.data);
/* Everything beyond this point will not be included in the binary. */
- bin_end = .;
+ bin_end = data_lma + SIZEOF(.data);
/* The entry point code assumes that .bss is 16-byte aligned. */
.bss : ALIGN(16) {