[OE-core] [PATCH 1/2 RFC] rpm: Add workaround for debugedit-segv
Phil Blundell
pb at pbcl.net
Mon Mar 25 17:02:35 UTC 2013
On Mon, 2013-03-25 at 12:19 -0500, Mark Hatle wrote:
> +Sections 23 and 24 (.plt and .bss) which are NOBITS have a loaded data address
> +of 0, but a size != 0.
That doesn't seem like totally unreasonable behaviour for a NOBITS
section. What were you expecting libelf to do in that case?
++ if (data != NULL && size != 0)
++ hashFunctionContextUpdateMC (&ctx, &chunk);
I suppose one could argue that allocating a chunk of zero-filled memory
of the right size and then hashing that would be a slightly better fix.
Whether it matters in practice or not would depend on what exactly is
going into this hash and what it's being used for.
p.
More information about the Openembedded-core
mailing list