]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild, modpost: fix unexpected non-allocatable section when cross compiling
authorAnders Kaseorg <andersk@MIT.EDU>
Sun, 3 May 2009 20:02:55 +0000 (22:02 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 4 May 2009 11:05:03 +0000 (13:05 +0200)
commit2fd567d18b36498318d3df613e78e34cc2fe4f52
tree77949e1c62598f76b0921e593c81837d936869ed
parent1a985b47cb04b3aed6754b180801ac551787c568
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 <andersk@mit.edu>
Reported-by: Sean MacLennan <smaclennan@pikatech.com>
Tested-by: Sean MacLennan <smaclennan@pikatech.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/mod/modpost.c