This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/21082] loader did not check result when allocating tlsblocks


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]