]> git.ipfire.org Git - thirdparty/libbsd.git/commit
Fix ELF support for big endian SH
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 7 Jun 2022 17:27:13 +0000 (19:27 +0200)
committerGuillem Jover <guillem@hadrons.org>
Wed, 8 Jun 2022 09:51:55 +0000 (11:51 +0200)
commit873639ebb5bc3688e5e78d71e5c0c49469498f46
tree2dd872e0a7649f0611997d4badc1df95fa61e699
parentc9c78fdfd0f8551dceec4f26a007ae14bec0e5b7
Fix ELF support for big endian SH

Fix the following build failure with big endian SH (e.g. sh4aeb):

  ,---
  In file included from nlist.c:44:
  nlist.c: In function '__elf_is_okay__':
  local-elf.h:223:25: error: 'ELFDATA2LMSB' undeclared (first use in this function); did you mean 'ELFDATA2LSB'?
    223 | #define ELF_TARG_DATA   ELFDATA2LMSB
        |                         ^~~~~~~~~~~~
  `---

Fixes: http://autobuild.buildroot.org/results/2980fb79c208454195d77383f1ece9afbd7f981b
Closes: !19
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Guillem Jover <guillem@hadrons.org>
src/local-elf.h