From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 0EECD3858405; Thu, 28 Apr 2022 18:52:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0EECD3858405 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Fix libinproctrace.so build on PPC X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 68c4956b1401de70173848a6bdf620cb42fa9358 X-Git-Newrev: fc0b8a976d17bf74cfe7310cafb602d07f2c69b9 Message-Id: <20220428185202.0EECD3858405@sourceware.org> Date: Thu, 28 Apr 2022 18:52:02 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2022 18:52:02 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dfc0b8a976d17= bf74cfe7310cafb602d07f2c69b9 commit fc0b8a976d17bf74cfe7310cafb602d07f2c69b9 Author: Tom Tromey Date: Wed Apr 27 08:06:57 2022 -0600 Fix libinproctrace.so build on PPC =20 The recent gnulib import caused a build failure of libinproctrace.so on PPC: =20 alloc.c:(.text+0x20): undefined reference to `rpl_malloc' alloc.c:(.text+0x70): undefined reference to `rpl_realloc' =20 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 =3D $(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 =3D -Drpl_strerror_r=3Dstrerror_r -Drpl_free=3Dfree +UNDO_GNULIB_CFLAGS =3D -Drpl_strerror_r=3Dstrerror_r -Drpl_free=3Dfree \ + -Drpl_malloc=3Dmalloc -Drpl_realloc=3Drealloc =20 # Note, we only build the IPA if -fvisibility=3Dhidden is supported in # the first place.