public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Fix libinproctrace.so 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

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fc0b8a976d17bf74cfe7310cafb602d07f2c69b9

commit fc0b8a976d17bf74cfe7310cafb602d07f2c69b9
Author: Tom Tromey <tromey@adacore.com>
Date:   Wed Apr 27 08:06:57 2022 -0600

    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.

Diff:
---
 gdbserver/Makefile.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in
index b9a687c9231..6e14278cd4b 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.


^ 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 libinproctrace.so 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).