public inbox for
help / color / mirror / Atom feed
* [binutils-gdb] Fix build on PPC
@ 2022-04-28 18:52 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2022-04-28 18:52 UTC (permalink / raw)
  To: gdb-cvs;h=fc0b8a976d17bf74cfe7310cafb602d07f2c69b9

commit fc0b8a976d17bf74cfe7310cafb602d07f2c69b9
Author: Tom Tromey <>
Date:   Wed Apr 27 08:06:57 2022 -0600

    Fix build on PPC
    The recent gnulib import caused a build failure of
    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.

 gdbserver/ | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gdbserver/ b/gdbserver/
index b9a687c9231..6e14278cd4b 100644
--- a/gdbserver/
+++ b/gdbserver/
@@ -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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-28 18:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-28 18:52 [binutils-gdb] Fix build on PPC Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).