mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-26 13:10:22 +02:00
PPC: Only call binutils function if it is available
* configure.ac, lib/jit_disasm.c: Rewrite workaround to apparent problem to initialize powerpc disassembler.
This commit is contained in:
parent
618512a889
commit
361caf2854
3 changed files with 20 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-01-15 Paulo Andrade <pcpa@gnu.org>
|
||||
|
||||
* configure.ac, lib/jit_disasm.c: Rewrite workaround
|
||||
to apparent problem to initialize powerpc disassembler.
|
||||
|
||||
2015-01-15 Paulo Andrade <pcpa@gnu.org>
|
||||
|
||||
* include/lightning.h, lib/jit_aarch64.c,
|
||||
|
|
|
@ -230,6 +230,13 @@ elif test $cpu = arm; then
|
|||
return 1;
|
||||
}
|
||||
]])],[ac_cv_test_arm_swf=yes],[],[ac_cv_test_arm_swf=no])
|
||||
elif test $cpu = ppc; then
|
||||
if test "x$DISASSEMBLER" != "xno"; then
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$LIBS $SHLIB"
|
||||
AC_CHECK_FUNCS(disassemble_init_for_target disassemble_init_powerpc)
|
||||
LIBS="$save_LIBS"
|
||||
fi
|
||||
fi
|
||||
CFLAGS=$save_CFLAGS
|
||||
|
||||
|
|
|
@ -91,12 +91,20 @@ jit_init_debug(const char *progname)
|
|||
# if defined(__powerpc__)
|
||||
disasm_info.arch = bfd_arch_powerpc;
|
||||
disasm_info.mach = bfd_mach_ppc64;
|
||||
# if HAVE_DISASSEMBLE_INIT_FOR_TARGET
|
||||
disassemble_init_for_target(&disasm_info);
|
||||
# elif HAVE_DISASSEMBLE_INIT_POWERPC
|
||||
disassemble_init_powerpc(&disasm_info);
|
||||
# endif
|
||||
# if defined(__powerpc64__)
|
||||
disasm_info.disassembler_options = "64";
|
||||
# endif
|
||||
# if HAVE_DISASSEMBLE_INIT_FOR_TARGET
|
||||
disassemble_init_for_target(&disasm_info);
|
||||
# elif HAVE_DISASSEMBLE_INIT_POWERPC
|
||||
disassemble_init_powerpc(&disasm_info);
|
||||
# endif
|
||||
# endif
|
||||
# if defined(__sparc__)
|
||||
disasm_info.endian = disasm_info.display_endian = BFD_ENDIAN_BIG;
|
||||
# endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue