This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch] allow suppression of fde encoding warning
- From: Ian Lance Taylor <iant at google dot com>
- To: Sandra Loosemore <sandra at codesourcery dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Sat, 19 Jan 2013 22:02:29 -0800
- Subject: Re: [patch] allow suppression of fde encoding warning
- References: <50FAFEB5.4060805@codesourcery.com>
On Sat, Jan 19, 2013 at 12:14 PM, Sandra Loosemore
<sandra@codesourcery.com> wrote:
>
> Google turned up a few references to this problem on other targets that
> indicated that the "right" solution is for GCC to emit section-relative
> references in the FDE data. But, not all architectures support such a thing
> in the ABI (and, in particular, the Nios II ABI doesn't have an appropriate
> relocation for this purpose). So, it seems like we should be able to turn
> the warning off on architectures where the optimization cannot possibly
> work.
I think the correct solution is to avoid using the --eh-frame-hdr
option on architectures where it can not work. I think the linker is
correctly warning you that although you explicitly specified
--eh-frame-hdr, you aren't going to get an exception frame header.
Ian