Skip to content
Commit 7d875a02 authored by Anders Kaseorg's avatar Anders Kaseorg Committed by Sam Ravnborg
Browse files

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: default avatarAnders Kaseorg <andersk@mit.edu>
Reported-by: default avatarSean MacLennan <smaclennan@pikatech.com>
Tested-by: default avatarSean MacLennan <smaclennan@pikatech.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent b4348f32
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment