This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: R_386_32 relocations with sym-value=0 ?
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