5085e9 complete/fix support of ctors/dtors and tls.

Authored and Committed by midipix 9 years ago
    complete/fix support of ctors/dtors and tls.
    
    + do not build libc.so with -DSHARED for the midipix targets.
    + provide surrogate init/fini arrays that allow invocation of the
      ctors/dtors iteration routines.
    + provide a builtin tls for the first thread.
    + update __copy_tls to match the layout of the simplified struct __tls.
    
    signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information.
    
        
file modified
+2 -0
file modified
+27 -3
file modified
+2 -0
file modified
+27 -3
file modified
+4 -4
file modified
+4 -4
file modified
+2 -1
empty file added
empty file added
empty file added
empty file added
file modified
+7 -5
file modified
+19 -0
file modified
+7 -5
file modified
+19 -0