backends: Use elf_getshdrstrndx to find .odp section in ppc64_init
authorMark Wielaard <mark@klomp.org>
Sat, 4 Aug 2018 20:32:56 +0000 (22:32 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 13 Sep 2018 12:30:30 +0000 (14:30 +0200)
commit19756e7fb614831f4a5f5ff5b996675fae638782
tree33062e42d1e7065b9c65c424ad3595e081e3b69e
parentba2a7f4fa5f453c2b0a729bf519240a8f66a1867
backends: Use elf_getshdrstrndx to find .odp section in ppc64_init

The .odp section is found by name. But ppc64_init used the e_shstrndx
Ehdr field for that. This is wrong if the file contains more than
SHN_LORESERVE sections. Use elf_getshdrstrndx instead to find the
shstrtab section.

Signed-off-by: Mark Wielaard <mark@klomp.org>
backends/ChangeLog
backends/ppc64_init.c