This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] getcfi_scn_eh_frame: Don't crash and burn when .eh_frame bits aren't there.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Sun, 14 Jul 2013 00:06:31 +0200
- Subject: Re: [PATCH] getcfi_scn_eh_frame: Don't crash and burn when .eh_frame bits aren't there.
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.