1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-23 12:03:41 +01:00

[PPC32] Make get_func_addr() a no-op function.

[PPC64] Add .../lib64 library directory when targeting ppc64.
This commit is contained in:
Jose Flavio Aguilar Paulino 2007-09-20 11:11:37 -06:00 committed by David Mosberger-Tang
parent 4499bb29a6
commit c340d04279
3 changed files with 16 additions and 12 deletions

7
configure vendored
View file

@ -20858,6 +20858,13 @@ else
fi fi
if test x$target_arch = xppc64; then
libdir='${exec_prefix}/lib64'
{ echo "$as_me:$LINENO: PowerPC64 detected, lib will be installed ${libdir}" >&5
echo "$as_me: PowerPC64 detected, lib will be installed ${libdir}" >&6;};
fi
if test x$target_arch != x$build_arch; then if test x$target_arch != x$build_arch; then
CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY" CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
fi fi

View file

@ -95,6 +95,12 @@ AM_CONDITIONAL(ARCH_PPC64, test x$target_arch = xppc64)
AM_CONDITIONAL(OS_LINUX, expr x$target_os : xlinux >/dev/null) AM_CONDITIONAL(OS_LINUX, expr x$target_os : xlinux >/dev/null)
AM_CONDITIONAL(OS_HPUX, expr x$target_os : xhpux >/dev/null) AM_CONDITIONAL(OS_HPUX, expr x$target_os : xhpux >/dev/null)
if test x$target_arch = xppc64; then
libdir='${exec_prefix}/lib64'
AC_MSG_NOTICE([PowerPC64 detected, lib will be installed ${libdir}]);
AC_SUBST([libdir])
fi
if test x$target_arch != x$build_arch; then if test x$target_arch != x$build_arch; then
CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY" CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
fi fi

View file

@ -28,18 +28,9 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "unwind_i.h" #include "unwind_i.h"
int int
tdep_get_func_addr (unw_addr_space_t as, unw_word_t addr, tdep_get_func_addr (unw_addr_space_t as, unw_word_t symbol_val_addr,
unw_word_t *entry_point) unw_word_t *real_func_addr)
{ {
unw_accessors_t *a; *real_func_addr = symbol_val_addr;
int ret;
a = unw_get_accessors (as);
/* Entry-point is stored in the 1st word of the function descriptor.
In case that changes in the future, we'd have to update the line
below and read the word at addr + offset: */
ret = (*a->access_mem) (as, addr, entry_point, 0, NULL);
if (ret < 0)
return ret;
return 0; return 0;
} }