:: commit 6ac24628e816a9d67b4b017c4ffe0cb5285eda12

mintsuki <mintsuki@protonmail.com> — 2021-05-30 23:52

parents: e69f7429ce

build: Ensure load addresses of debug and tab sections are 0

diff --git a/stage23/linker.ld b/stage23/linker.ld
index 2b91d55a..02308faa 100644
--- a/stage23/linker.ld
+++ b/stage23/linker.ld
@@ -44,15 +44,15 @@ SECTIONS
         bss_end = .;
     }
 
-    .symtab : {
+    .symtab 0 : {
         *(.symtab)
     }
 
-    .strtab : {
+    .strtab 0 : {
         *(.strtab)
     }
 
-    .shstrtab : {
+    .shstrtab 0 : {
         *(.shstrtab)
     }
 
diff --git a/stage23/linker_dbg.ld b/stage23/linker_dbg.ld
index 9e009aab..f4e99048 100644
--- a/stage23/linker_dbg.ld
+++ b/stage23/linker_dbg.ld
@@ -44,63 +44,63 @@ SECTIONS
         bss_end = .;
     }
 
-    .symtab : {
+    .symtab 0 : {
         *(.symtab)
     }
 
-    .strtab : {
+    .strtab 0 : {
         *(.strtab)
     }
 
-    .shstrtab : {
+    .shstrtab 0 : {
         *(.shstrtab)
     }
 
-    .debug_aranges : {
+    .debug_aranges 0 : {
         *(.debug_aranges)
     }
 
-    .debug_pubnames : {
+    .debug_pubnames 0 : {
         *(.debug_pubnames)
     }
 
-    .debug_info : {
+    .debug_info 0 : {
         *(.debug_info)
     }
 
-    .debug_abbrev : {
+    .debug_abbrev 0 : {
         *(.debug_abbrev)
     }
 
-    .debug_line : {
+    .debug_line 0 : {
         *(.debug_line)
     }
 
-    .debug_loclists : {
+    .debug_loclists 0 : {
         *(.debug_loclists)
     }
 
-    .debug_rnglists : {
+    .debug_rnglists 0 : {
         *(.debug_rnglists)
     }
 
-    .debug_frame : {
+    .debug_frame 0 : {
         *(.debug_frame)
     }
 
-    .debug_loc : {
+    .debug_loc 0 : {
         *(.debug_loc)
     }
 
-    .debug_ranges : {
+    .debug_ranges 0 : {
         *(.debug_ranges)
     }
 
-    .debug_str : {
+    .debug_str 0 : {
         *(.debug_str)
     }
 
-    .debug_line_str : {
+    .debug_line_str 0 : {
         *(.debug_line_str)
     }
 
diff --git a/stage23/linker_nomap.ld b/stage23/linker_nomap.ld
index 365ef5ec..6c62b069 100644
--- a/stage23/linker_nomap.ld
+++ b/stage23/linker_nomap.ld
@@ -44,15 +44,15 @@ SECTIONS
         bss_end = .;
     }
 
-    .symtab : {
+    .symtab 0 : {
         *(.symtab)
     }
 
-    .strtab : {
+    .strtab 0 : {
         *(.strtab)
     }
 
-    .shstrtab : {
+    .shstrtab 0 : {
         *(.shstrtab)
     }
 
diff --git a/stage23/linker_stage2only.ld b/stage23/linker_stage2only.ld
index ccadc660..ccd38277 100644
--- a/stage23/linker_stage2only.ld
+++ b/stage23/linker_stage2only.ld
@@ -35,15 +35,15 @@ SECTIONS
         bss_end = .;
     }
 
-    .symtab : {
+    .symtab 0 : {
         *(.symtab)
     }
 
-    .strtab : {
+    .strtab 0 : {
         *(.strtab)
     }
 
-    .shstrtab : {
+    .shstrtab 0 : {
         *(.shstrtab)
     }
 
tab: 248 wrap: offon