Fixed TLS for statically-linked programs
authorAndrew Waterman <waterman@s143.Millennium.Berkeley.EDU>
Wed, 5 May 2010 09:58:27 +0000 (02:58 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:47 +0000 (17:35 -0700)
commit26cddfb82e00c6d078ba907cdd2710fa539ae62e
tree53ecda1f007ae8272c959389529529b9bb6d0262
parent3160d839b357eabf81b97f59a60b67c8bd40898d
Fixed TLS for statically-linked programs

Basically, the kernel needs to communicate the program headers
to libc.  Not all ELFs include the program header in the memory-
resident image, so we might have to forcibly map it in.
kern/src/elf.c
tests/tlstest.c
tools/compilers/gcc-glibc/glibc-2.11.1-ros/sysdeps/ros/init-first.c
tools/compilers/gcc-glibc/glibc-2.11.1-ros/sysdeps/ros/start.c