From: Takashi Ono <t_ono@hk...> - 2007-12-30 12:14:33
The return address in dwarf2 FDE (Frame Description Entry) in eh_frame is a reference
to a local symbol at the head of the trying function.
If the function is a outlined inline function (most probably in a header file) and
may occur in more than one TU, the section containing the function is marked
linkeonce and discardabe and may be discarded at linkage.
Therefore the frame with zero return address can be ignored. So far so good.
However, the pe-ld still emits a relocation entry for the never resolved reference to
the symbol in the discarded section in eh_frame. So it will cause a problem if the
executable .exe or .dll is relocated or rebased as the reference becomes nonzero.
Of course I do not want to mark the executable non-relocatable.
Are there any ideas for a workaround, linker scripts or source patches to fix this?
Takashi Ono(HK Freak)
mailto:t_ono@... or MHF00056@...
(Personal Address, checked every morning/evening and holidays)
(Address for business, checked every working days)