------- Additional Comments From bonzini at gnu dot org 2009-01-28 14:07 ------- > * elfcpp/elfcpp_swap.h included Linux-only <endian.h> and <byteswap.h> > > on Solaris 2, one can use <sys/types.h> instead which either defines > _BIG_ENDIAN or _LITTLE_ENDIAN
Autoconf macros can also be used for portability. > * gold/output.h uses ffsll, which is missing Since it's in a header you can use a simple #ifndef HAVE_FFSLL static inline int ffsll(long long value) { if (value & 0xFFFFFFFFLL) return ffs ((int)value); else return 32 + ffs ((int)(value >> 32)); } #endif > gold/output.cc uses mmremap and MREMAP_MAYMOVE, which are missing You can change all the map_is_anonymous_ code to use malloc/free instead. > gold/object.cc uses memmem, which is undefined Could be added to libiberty: http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/memmem.c;h=622a034;hb=9d8d6cd -- http://sourceware.org/bugzilla/show_bug.cgi?id=7024 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils