]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r275430: libelf: Fix cross-endian ELF note file / memory conversion
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 11 Apr 2016 14:44:18 +0000 (14:44 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 11 Apr 2016 14:44:18 +0000 (14:44 +0000)
commit7be1a6c21ca7624ef1cdecd92ea508f54afcb589
tree06f62e33b164d0034c1179d814ed786594e2046e
parent44e75b4c92961d12188467fbe74f6f888e8c78de
MFC r275430: libelf: Fix cross-endian ELF note file / memory conversion

The namesz and descsz variables need to be used in native endianness.
The sizes are in native order after swapping in the file to memory case,
and before swapping in the memory to file case.

This change is not identical to r275430 because r273443 was never merged
to stable/10, and libelf moved from lib/ to contrib/elftoolchain/.

git-svn-id: svn://svn.freebsd.org/base/stable/10@297822 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libelf/libelf_convert.m4