From: Anders Kaseorg Date: Sun, 3 May 2009 20:02:55 +0000 (+0200) Subject: kbuild, modpost: fix unexpected non-allocatable section when cross compiling X-Git-Tag: v2.6.30-rc5~37^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d875a02864a35532543897195dfea2235815df8;p=pandora-kernel.git kbuild, modpost: fix unexpected non-allocatable section when cross compiling The missing TO_NATIVE(sechdrs[i].sh_flags) was causing many unexpected non-allocatable section warnings when cross-compiling for an architecture with a different endianness. Fix endianness of all the fields in the ELF header and section headers, not just some of them so we are not hit by this anohter time. Signed-off-by: Anders Kaseorg Reported-by: Sean MacLennan Tested-by: Sean MacLennan Signed-off-by: Sam Ravnborg --- Reading git-diff-tree failed