[PATCH v7 3/8] Move malloc hooks into a compat DSO

Florian Weimer fweimer@redhat.com
Fri Jul 9 09:22:41 GMT 2021


* Siddhesh Poyarekar:

> On 7/9/21 1:47 PM, Florian Weimer via Libc-alpha wrote:
>> This has another issue on i686-gnu.  This looks like the locking code
>> does not work outside of libc:
>> /home/bmg/install/compilers/i686-gnu/lib/gcc/i686-glibc-gnu/11.1.1/../../../../i686-glibc-gnu/bin/ld:
>> /home/bmg/build/glibcs/i686-gnu/glibc/malloc/libc_malloc_debug_pic.a(malloc-debug.os):
>> in function `__malloc_info':
>> /home/bmg/src/glibc/malloc/malloc.c:5670: undefined reference to `__gsync_wait'
>> /home/bmg/install/compilers/i686-gnu/lib/gcc/i686-glibc-gnu/11.1.1/../../../../i686-glibc-gnu/bin/ld: /home/bmg/src/glibc/malloc/malloc.c:5756: undefined reference to `__gsync_wake'
>> I'm not entirely sure how this is supposed to work.  Clearly the
>> libc
>> locks work outside of libc for other DSOs, and libc_malloc_debug is
>> built with -DMODULE_NAME=libc_malloc_debug, so it should be recognized
>> as outside of libc.
>
> That is very strange, i686 had worked just fine on Fedora.  I'll take
> a closer look.

Sorry, it's i686-gnu, so Hurd.

Florian



More information about the Libc-alpha mailing list