This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/21082] loader did not check result when allocating tlsblocks
- From: "ma.jiang at zte dot com.cn" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 06 Feb 2017 09:04:45 +0000
- Subject: [Bug dynamic-link/21082] loader did not check result when allocating tlsblocks
- Auto-submitted: auto-generated
- References: <bug-21082-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21082
--- Comment #4 from ma.jiang at zte dot com.cn ---
(In reply to Florian Weimer from comment #3)
> We currently cannot use INTERNAL_SYSCALL in generic code, so this is more
> complicated than it looks.
Hi Florian,
Sorry for the delay, we got spring festival last week.
If we could not use INTERNAL_SYSCALL in libc-tls.c then I can finally
understand those comments in code now... But I still can not understand why
INTERNAL_SYSCALL can not be used here.
INTERNAL_SYSCALL is just a macro in sysdep.h, and have been used in many
generic routines
(nptl/nptl-init.c,sysdeps/unix/sysv/linux/clock_nanosleep.c,...). Moreover, I
have tried to add a static __sbrk (which used INTERNAL_SYSCALL) into
libc-tls.c. It seems all things are ok, no compiling errors or run-time errors.
By the way, there is another piece of code in my patch. It is about init_tls
in elf/rtld.c. This piece should be applicable , I suppose.
--
You are receiving this mail because:
You are on the CC list for the bug.