]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the conversion macro for .note sections, broken in the case
authorMarcel Moolenaar <marcel@FreeBSD.org>
Wed, 22 Oct 2014 01:04:16 +0000 (01:04 +0000)
committerMarcel Moolenaar <marcel@FreeBSD.org>
Wed, 22 Oct 2014 01:04:16 +0000 (01:04 +0000)
commitc10185837c21c545c8bb85a2212a0a668657364f
tree659c66dbb1753897af638b2f467dc66c97f9978d
parent5da7d44acbd5f421aba5bb0255102c86cac504ff
Fix the conversion macro for .note sections, broken in the case
the ELF file's byte order is not the native byte order.  The
bug is that the variables holding the name and description size
are used (natively) after having been byte-swapped.  The fix is
to calculate sz from them just prior to byte-swapping.

Approved by: jkoshy@
Obtained from: Juniper Networks, Inc.
contrib/elftoolchain/libelf/libelf_convert.m4