[PATCH] getcfi_scn_eh_frame: Don't crash and burn when .eh_frame bits aren't there.

Mark Wielaard mjw at redhat.com
Sat Jul 13 22:06:31 UTC 2013


On Fri, 2013-07-12 at 22:52 -0700, Roland McGrath wrote:
> The more conservative check would be != SHT_NOBITS, wouldn't it?
> I can imagine some machine using a processor-specific type for .eh_frame
> rather than SHT_PROGBITS, even if none do that now.

The reason I didn't do that was because the gLSB spec does explicitly
say .eh_frame should be SHT_PROGBITS and as you say all current machines
do. So I would expect trouble if we assumed everything else would be
just the same .eh_frame bits if they don't even follow that part.

Cheers,

Mark



More information about the elfutils-devel mailing list