Skip to contentSkip to conversation

MIPS: Discard .eh_frame sections in linker script.

PATCH Superseded David Daney 2 participants 2 messages Aug 8, 2013 MIPS

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Discard .eh_frame sections in linker script.

From: David Daney <[email protected]>

Some toolchains (including Cavimu OCTEON SDK) are emitting .eh_frame sections by default. Discard them as they are useless in the kernel.

---
 arch/mips/kernel/vmlinux.lds.S | 1 +
 1 file changed, 1 insertion(+)
arch/mips/kernel/vmlinux.lds.S +1 -0
index 05826d2..3b46f7c 100644
@@ -179,5 +179,6 @@ SECTIONS
 		*(.options)
 		*(.pdr)
 		*(.reginfo)
+		*(.eh_frame)
 	}
 }
Signature · 1 line
1.7.11.7
#1 lore raw
Quoted 3 lines · David Daney

From: David Daney <[email protected]>

Some toolchains (including Cavimu OCTEON SDK) are emitting .eh_frame

... Obvious spelling error ^^^^^^^

I will fix it and resend.

Quoted 19 lines

sections by default. Discard them as they are useless in the kernel.

---
  arch/mips/kernel/vmlinux.lds.S | 1 +
  1 file changed, 1 insertion(+)
arch/mips/kernel/vmlinux.lds.S +1 -0
index 05826d2..3b46f7c 100644
@@ -179,5 +179,6 @@ SECTIONS
  		*(.options)
  		*(.pdr)
  		*(.reginfo)
+		*(.eh_frame)
  	}
  }