R_386_32 relocations with sym-value=0 ?

Ian Lance Taylor iant@google.com
Wed Aug 18 00:18:00 GMT 2010


Nils Asmussen <nils@script-solution.de> writes:

> When I understand it correctly, the glibc provides its own
> _Unwind_Find_FDE (in gcc/unwind-dw2-fde-glibc.c) instead of the one from
> libgcc, which - as you said - finds the GNU_EH_FRAME-segment with
> dl_iterate_phdr. So, should I do it similar and change my cross-compiler
> a bit? Or what would be the best way to do it in my case?

I think the unwind routines can be found both in libgcc and in glibc.
However, I suspect they will only be in libgcc if gcc believes that the
linker supports the --eh-frame-hdr option.

Certainly the best way is to use a linker which supports --eh-frame-hdr
and use a gcc which believes that to be true.  Otherwise, you will need
to use gcc's startup code to register the exception frames.

Ian



More information about the Binutils mailing list