aboutsummaryrefslogtreecommitdiff
path: root/gdbserver
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-04-27 08:06:57 -0600
committerTom Tromey <tromey@adacore.com>2022-04-28 12:47:11 -0600
commitfc0b8a976d17bf74cfe7310cafb602d07f2c69b9 (patch)
treef43d296c38d4273f55f952810d1593035695fbd8 /gdbserver
parent68c4956b1401de70173848a6bdf620cb42fa9358 (diff)
downloadfsf-binutils-gdb-fc0b8a976d17bf74cfe7310cafb602d07f2c69b9.zip
fsf-binutils-gdb-fc0b8a976d17bf74cfe7310cafb602d07f2c69b9.tar.gz
fsf-binutils-gdb-fc0b8a976d17bf74cfe7310cafb602d07f2c69b9.tar.bz2
Fix libinproctrace.so build on PPC
The recent gnulib import caused a build failure of libinproctrace.so on PPC: alloc.c:(.text+0x20): undefined reference to `rpl_malloc' alloc.c:(.text+0x70): undefined reference to `rpl_realloc' This patch fixes the problem using the same workaround that was previously used for free.
Diffstat (limited to 'gdbserver')
-rw-r--r--gdbserver/Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in
index b9a687c..6e14278 100644
--- a/gdbserver/Makefile.in
+++ b/gdbserver/Makefile.in
@@ -470,7 +470,8 @@ UST_CFLAGS = $(ustinc) -DCONFIG_UST_GDB_INTEGRATION
# Undo gnulib replacements for the IPA shared library build.
# The gnulib headers are still needed, but gnulib is not linked
# into the IPA lib so replacement apis don't work.
-UNDO_GNULIB_CFLAGS = -Drpl_strerror_r=strerror_r -Drpl_free=free
+UNDO_GNULIB_CFLAGS = -Drpl_strerror_r=strerror_r -Drpl_free=free \
+ -Drpl_malloc=malloc -Drpl_realloc=realloc
# Note, we only build the IPA if -fvisibility=hidden is supported in
# the first place.