linux-mips
[Top] [All Lists]

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

To: David Daney <ddaney.cavm@gmail.com>
Subject: Re: [PATCH] MIPS: Discard .eh_frame sections in linker script.
From: David Daney <ddaney@caviumnetworks.com>
Date: Thu, 8 Aug 2013 11:40:57 -0700
Cc: <linux-mips@linux-mips.org>, <ralf@linux-mips.org>, David Daney <david.daney@cavium.com>
In-reply-to: <1375987013-3599-1-git-send-email-ddaney.cavm@gmail.com>
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
References: <1375987013-3599-1-git-send-email-ddaney.cavm@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7
On 08/08/2013 11:36 AM, David Daney wrote:
From: David Daney <david.daney@cavium.com>

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

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

I will fix it and resend.

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)
        }
  }



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