-
由 Anders Kaseorg 提交于
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: NAnders Kaseorg <andersk@mit.edu> Reported-by: NSean MacLennan <smaclennan@pikatech.com> Tested-by: NSean MacLennan <smaclennan@pikatech.com> Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
7d875a02