summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/scripts/i386.lds
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/i386/scripts/i386.lds')
-rw-r--r--src/arch/i386/scripts/i386.lds10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/arch/i386/scripts/i386.lds b/src/arch/i386/scripts/i386.lds
index a5a01056..7d63dae6 100644
--- a/src/arch/i386/scripts/i386.lds
+++ b/src/arch/i386/scripts/i386.lds
@@ -31,6 +31,16 @@ SECTIONS {
*/
/*
+ * Weak symbols that need zero values if not otherwise defined
+ */
+
+ . = 0;
+ .weak : AT ( 0 ) {
+ *(.weak)
+ }
+ _assert = ASSERT ( ( . == 0 ), ".weak is non-zero length" );
+
+ /*
* The prefix
*/