瀏覽代碼

[build] Discard junk sections created by newer gcc versions

tags/v0.9.6
Michael Brown 15 年之前
父節點
當前提交
c661945e82
共有 2 個檔案被更改,包括 12 行新增0 行删除
  1. 6
    0
      src/arch/i386/scripts/efi.lds
  2. 6
    0
      src/arch/i386/scripts/i386.lds

+ 6
- 0
src/arch/i386/scripts/efi.lds 查看文件

@@ -149,7 +149,13 @@ SECTIONS {
149 149
 
150 150
     /DISCARD/ : {
151 151
 	*(.comment)
152
+	*(.comment.*)
152 153
 	*(.note)
154
+	*(.note.*)
155
+	*(.eh_frame)
156
+	*(.eh_frame.*)
157
+	*(.rel)
158
+	*(.rel.*)
153 159
     }
154 160
 
155 161
     /*

+ 6
- 0
src/arch/i386/scripts/i386.lds 查看文件

@@ -145,7 +145,13 @@ SECTIONS {
145 145
 
146 146
     /DISCARD/ : {
147 147
 	*(.comment)
148
+	*(.comment.*)
148 149
 	*(.note)
150
+	*(.note.*)
151
+	*(.eh_frame)
152
+	*(.eh_frame.*)
153
+	*(.rel)
154
+	*(.rel.*)
149 155
     }
150 156
 
151 157
     /*

Loading…
取消
儲存