glibc 2.19 - asyn-signal safe TLS and ASan.

Paul Pluzhnikov ppluzhnikov@google.com
Mon Jan 27 15:38:00 GMT 2014


On Mon, Jan 27, 2014 at 5:37 AM, Kostya Serebryany <kcc@google.com> wrote:

>> > How do I "export" __signal_safe_memalign? (I/d like to experiment myself)
>> You'll need this snippet of above patch: (line 61,5):
>
> Paul, I tried this:
>
> --- a/elf/Versions
> +++ b/elf/Versions
> @@ -62,5 +62,8 @@ ld {
>
>      # Pointer protection.
>      __pointer_chk_guard;
> +    # for signal safe TLS
> +    __signal_safe_malloc; __signal_safe_free; __signal_safe_memalign;
> +    __signal_safe_realloc; __signal_safe_calloc;
>    }
>  }
>
> it did not help: "nm libc.so | grep signal_safe_memalign" is empty.

It probably did. I believe these functions are defined and used in
'ld.so', so try 'nm ld.so | grep signal_safe'.


-- 
Paul Pluzhnikov



More information about the Libc-alpha mailing list