From: ytomino <aghia05@gmail.com>
Subject: Re: -dead_strip and exception handling
Date: Thu, 25 Aug 2011 12:46:10 -0700 (PDT)
Date: 2011-08-25T12:46:10-07:00 [thread overview]
Message-ID: <446825c8-091b-4083-853e-ca9ed154ab43@t20g2000prf.googlegroups.com> (raw)
In-Reply-To: m2r54f92ko.fsf@pushface.org
I found something.
gcc-4.5 outputs labels of error frames (_funcname.eh).
gcc-4.6 does not output labels of error frames.
ld of leopard use labels of error frames to link __eh_frame section.
However, if without -dead_strip, ld links all contents of *.o. So it
works fine.
ld of snow leopard (or lion) is upgraded. it has been linked with
libunwind.
Probably it can find error frames without labels and output right
__eh_frame section.
As a result, only in case of combination "ld of leopard", "-
dead_strip" and "*.o output by gcc-4.6", exception handlers are
ignored.
Thank you.
prev parent reply other threads:[~2011-08-25 19:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-20 19:07 -dead_strip and exception handling ytomino
2011-08-20 21:48 ` Simon Wright
2011-08-20 22:29 ` ytomino
2011-08-25 19:46 ` ytomino [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox