Re: -dead_strip and exception handling



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.
.