summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/program.ld4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/program.ld b/src/lib/program.ld
index 865b5f6aa7..9b8c7c9ec1 100644
--- a/src/lib/program.ld
+++ b/src/lib/program.ld
@@ -133,6 +133,10 @@ _eprogram = .;
/* Discard the sections we don't need/want */
+.zeroptr 0 (NOLOAD) : {
+ zeroptr = .;
+}
+
/DISCARD/ : {
*(.comment)
*(.comment.*)