]> git.ipfire.org Git - thirdparty/libbsd.git/commit
Fix ELF definitions for MIPS in local-elf.h
authorJames Cowgill <jcowgill@debian.org>
Mon, 19 Jun 2017 19:38:40 +0000 (21:38 +0200)
committerGuillem Jover <guillem@hadrons.org>
Sat, 24 Jun 2017 14:08:22 +0000 (16:08 +0200)
commitb480b7a3f81cf49b9f3f0f8cdd20b33999aa7530
treef1179a807447353f693423ae0f236fd42a3883df
parent4cc20e23f5262fdeb667bbc6bd4ba57c92aac8e4
Fix ELF definitions for MIPS in local-elf.h

Add a check for _MIPS_SIM inside the __mips__ #elif to detect mips64el
and use ELFCLASS64 in that case. Note that we can't use defined(__mips64)
here because that is also defined when the n32 ABI is in use, which uses
ELFCLASS32.

Fixes: https://bugs.debian.org/865091
Signed-off-by: Guillem Jover <guillem@hadrons.org>
src/local-elf.h