OSDN Git Service

Kazu Hirata wrote:
authorDavid McCullough <davidm@snapgear.com>
Thu, 27 Nov 2008 01:08:04 +0000 (01:08 +0000)
committerDavid McCullough <davidm@snapgear.com>
Thu, 27 Nov 2008 01:08:04 +0000 (01:08 +0000)
commit74bc20707d99079535bba6b5068dd9df50aa62be
tree1eccacc564be615df9efe0d136560d8cc948fed6
parent8ee8d4c7d397176ec725ebab0609ed128480ab81
Kazu Hirata wrote:
> Attached is a patch to fix elf2flt.ld so that C++ programs will link
> successfully.
>
> Nathan Sidwell says:
> nathan@codesourcery.com
>
>   "The problem is the .eh_frame_hdr optimization. firstly that input
>   section was not mentioned in the linker script and secondly, the
>   linker requires .eh_frame_hdr and .eh_frame section in the output,
>   so it can optimize them. I move gcc_except_table out of .data, for
>   consistency."

I've been trying to get CVS binutils up and running on the Blackfin, and
after debugging a C++ link failure I eventually tracked it down to the
elf2flt linker script, and google pointed me at this thread which I'd
completely forgotten in the meantime.  The patch is needed, please apply
to elf2flt.

Bernd Schmidt <bernds_cb1@t-online.de>
elf2flt.ld