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)
commit0a8f04a9b320c5279cd23ca689286f1c80ca420f
tree1eccacc564be615df9efe0d136560d8cc948fed6
parent23295f97a44d5b4f87563ea5d162c1877b49a0e5
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