linux-mips
[Top] [All Lists]

[PATCH] MIPS: Discard .eh_frame sections in linker script.

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: [PATCH] MIPS: Discard .eh_frame sections in linker script.
From: David Daney <ddaney.cavm@gmail.com>
Date: Thu, 8 Aug 2013 11:36:53 -0700
Cc: David Daney <david.daney@cavium.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=lTLfgd1NK99V87PBKA4VbJ16GZpBF6snrpuVu+YWGhQ=; b=WPNe90vtksX0CvvwjtPqI43y2WGfzejNZw5uCWkJFFo/J4NXFIXaEcHjWzAthgOchZ 2lLVi54tdJcVK2jVU+s9w9q8lG1XV1Tj/mXT+SPIYz8PnW9Ylzk7zX25CV5k3kCGeTiC rQTSKD/lQICnWBpCls7YbIfdPbKrcPFo28S/+jHSoU/FCJYKGM/Dw5YBE6o+2luPnfuB SDhkJR728ilyt2ujGDotvmk20Z0uHxdSnsZnHbsadigIi3rxbbBZT5oyJ7CD2GpF8Ctq RZb2jaA4EViPdcAJ8cYzwfIRlIb3MU/W9znj0iSQIURV3qY4etZsz5uds1e5zKCVZEyS 1V9A==
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
From: David Daney <david.daney@cavium.com>

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

Signed-off-by: David Daney <david.daney@cavium.com>
---
 arch/mips/kernel/vmlinux.lds.S | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.S
index 05826d2..3b46f7c 100644
--- a/arch/mips/kernel/vmlinux.lds.S
+++ b/arch/mips/kernel/vmlinux.lds.S
@@ -179,5 +179,6 @@ SECTIONS
                *(.options)
                *(.pdr)
                *(.reginfo)
+               *(.eh_frame)
        }
 }
-- 
1.7.11.7


<Prev in Thread] Current Thread [Next in Thread>