aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJames Cowgill <[email protected]>2015-01-14 16:37:14 +0000
committerRalf Baechle <[email protected]>2015-01-15 15:59:28 +0100
commitfd75a33e0002d2f850c67c775df47c4d479c20c1 (patch)
tree056173b335eb214efeec4aab99fd4b2e18b4da2b /tools/perf/scripts/python/bin
parent50083928bcb38bc847cb885fd70f79a63cabd9b5 (diff)
MIPS: ELF: fix loading o32 binaries on 64-bit kernels
Commit 90cee759f08a ("MIPS: ELF: Set FP mode according to .MIPS.abiflags") introduced checking of the .MIPS.abiflags ELF section but did so through the native sized "elfhdr" and "elf_phdr" structures regardless whether the ELF was actually 32-bit or 64-bit. This produces wrong results when trying to use a 64-bit kernel to load o32 ELF files. Change the uses of the generic elf structures to their 32-bit versions. Since the code bails out on any 64-bit cases, this is OK until they are implemented. Fixes: 90cee759f08a ("MIPS: ELF: Set FP mode according to .MIPS.abiflags") Signed-off-by: James Cowgill <[email protected]> Cc: [email protected] Cc: Paul Burton <[email protected]> Reviewed-by: Maciej W. Rozycki <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/8932/ Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions