This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

Cheers,

Mark


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]