Web lists-archives.org

[Mingw-users] unresolved return address in dwarf2 FDE




Hi,

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@xxxxxxxxxxx or MHF00056@xxxxxxxxxxx
	(Personal Address, checked every morning/evening and holidays)
 mailto:t_ono@xxxxxxxxxxxxxxxx
	(Address for business, checked every working days)
 http://www.hkfreak.net

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users