• Baruch Siach's avatar
    Fix build for openrisc with uClibc · f6ed7c27
    Baruch Siach authored
    uClibc defines EM_OR1K instead of EM_OPENRISC for the OpenRISC ELF
    e_machine ID. Use EM_OR1K when EM_OPENRISC is not defined.
    This fixes the following build failure:
    In file included from nlist.c:44:0:
    nlist.c: In function ‘__elf_is_okay__’:
    local-elf.h:224:23: error: ‘EM_OPENRISC’ undeclared (first use in this function)
    nlist.c:77:26: note: in expansion of macro ‘ELF_TARG_MACH’
       if (ehdr->e_machine == ELF_TARG_MACH &&
    Signed-off-by: Guillem Jover's avatarGuillem Jover <guillem@hadrons.org>
local-elf.h 6.34 KB