aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-06-22 22:19:51 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2008-06-22 22:19:51 +0100
commit8dee117a5679f5c068c6e68d7d0306bf9570611f (patch)
tree120db992188857f6e2dd4b6a69b79533226c927f
parent4b9709ae72d646fcb19231bcabe46187701e976b (diff)
downloadpaludis-8dee117a5679f5c068c6e68d7d0306bf9570611f.tar.gz
paludis-8dee117a5679f5c068c6e68d7d0306bf9570611f.tar.xz
FreeBSD doesn't define EF_MIPS_ABI2
-rw-r--r--src/clients/reconcilio/broken_linkage_finder/elf_linkage_checker.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/clients/reconcilio/broken_linkage_finder/elf_linkage_checker.cc b/src/clients/reconcilio/broken_linkage_finder/elf_linkage_checker.cc
index 9853172..d75a7ea 100644
--- a/src/clients/reconcilio/broken_linkage_finder/elf_linkage_checker.cc
+++ b/src/clients/reconcilio/broken_linkage_finder/elf_linkage_checker.cc
@@ -51,7 +51,9 @@ namespace
struct ElfArchitecture
{
// not in elf.h; from glibc-2.5/sysdeps/s390/s390-32/dl-machine.h
- static const unsigned EM_S390_OLD = 0xA390;
+ static const unsigned S390_OLD = 0xA390;
+ // not in FreeBSD elf.h
+ static const unsigned MIPS_ABI2 = 32;
unsigned _machine;
unsigned char _class, _os_abi, _os_abi_version;
@@ -65,7 +67,7 @@ namespace
{
case EM_MIPS_RS3_LE:
return EM_MIPS;
- case EM_S390_OLD:
+ case S390_OLD:
return EM_S390;
}
return arch;
@@ -78,7 +80,7 @@ namespace
_os_abi(elf.get_os_abi()),
_os_abi_version(elf.get_os_abi_version()),
_bigendian(elf.is_big_endian()),
- _mips_n32(EM_MIPS == _machine && EF_MIPS_ABI2 & elf.get_flags())
+ _mips_n32(EM_MIPS == _machine && MIPS_ABI2 & elf.get_flags())
{
}
};