aboutsummaryrefslogtreecommitdiff
path: root/apps/link.ld
diff options
context:
space:
mode:
authorMarvin Borner2021-02-26 18:40:37 +0100
committerMarvin Borner2021-02-26 18:40:37 +0100
commit5cd84ad93f7d67cdaa134707fcce1b1ef85183ad (patch)
tree777ccbcf3034f96a013c402cf05ad23c35b4de0e /apps/link.ld
parent0f00932955521c3c2fb8140176ab72f22172c298 (diff)
Full UBSan support - many fixes!
Diffstat (limited to 'apps/link.ld')
-rw-r--r--apps/link.ld15
1 files changed, 6 insertions, 9 deletions
diff --git a/apps/link.ld b/apps/link.ld
index 2b9599a..781e38d 100644
--- a/apps/link.ld
+++ b/apps/link.ld
@@ -8,27 +8,24 @@ SECTIONS
. = 0x00000000;
.text : {
+ code = .;
*(.text)
- }
-
- .rodata : {
*(.rodata)
+ . = ALIGN(4096);
}
- . = ALIGN(4096);
-
.data : {
+ data = .;
*(.data)
+ . = ALIGN(4096);
}
- . = ALIGN(4096);
-
.bss : {
+ bss = .;
*(.bss)
+ . = ALIGN(4096);
}
- . = ALIGN(4096);
-
_GLOBAL_OFFSET_TABLE_ = .;
. = ALIGN(4096);