OSDN Git Service

Note a security item for the next release
[uclinux-h8/uClibc.git] / TODO
1 TODO list for the uClibc 0.9.27 release:
2 -------------------------------------------------
3     *) Implement some mechanism (perhaps encoded in the .so name,
4         perhaps using an abi tag magically embedded into each object)
5         for flagging config options that break the ABI.  Options
6         such as UCLIBC_HAS_SOFT_FLOAT, UCLIBC_HAS_THREADS, UCLIBC_HAS_LOCALE,
7         and perhaps others (finalize list) produce a lib with a differing
8         ABI.  Make it so apps cannot use an ABI mis-matched uClibc.
9     *) Fix syscall() on mips
10     *) Finish up current ldso cleanups
11     *) Fix dlopen, for both static and dynamic cases, and make it
12         actually comply with SuSv3
13     *) Fix use of __secure in __uClibc_init() for so that we prevent
14         starting staticly linked SUID binaries where the standard file
15         descriptors are not opened.  For dynamically linked binaries,
16         ldso does this for us.
17
18
19 TODO list for the uClibc 1.0.0 release:
20 -------------------------------------------------
21
22     *) Documentation updates:
23             *) Write a uClibc HOWTO document
24             *) Update README document
25             *) Update INSTALL document
26             *) Update docs/Glibc_vs_uClibc_Differences.txt document
27                 and fully document all differences between the feature
28                 set of uClibc and glibc.
29             *) Update docs/uClibc_vs_SuSv3.txt document
30             *) Update docs/threads.txt document
31             *) Write man pages for ldd and ldconfig utility binaries
32     *) Perhaps implement glibc style frame-unwinding, so that gcc need
33         not be built with --enable-sjlj-exceptions for C++ exception handling
34         to work.
35     *) Implement the float and long double versions of math funcs
36         using wrappers on top of the double versions (size / precision
37         trade off where size clearly wins).
38     *) Fix profiling by adding missing stub functions per
39         http://uclibc.org/lists/uclibc/2004-February/008167.html
40         and used by, i.e. http://www710.univ-lyon1.fr/~yperret/fnccheck/
41     *) Audit header files.  Remove prototypes for all functions that
42         are not supported -- especially needed for the libm headers.
43     *) Audit header files.  When options are disabled, also disable
44         them in the include files as well by checking for the proper
45         define from include/bits/uClibc_config.h (pulled in from features.h)
46     *) Make all small objects (>~50 bytes) into either inlines or
47         into a static library
48     *) Cleanup / rewrite sysconf.c.  It should get some information
49         from ldso (such as HZ).  Other stuff it currently just makes
50         up, which is obviously wrong.  Also bits/uClibc_clk_tck.h
51         needs to be updated at the same time to get proper HZ values.
52     *)  It would nice if valgrind wouldn't complain about the atexit() malloc'd
53         memory for destructors, which happens since the dynamic linker calls
54         atexit(), which calls malloc() prior to valgrind starting, so valgrind
55         complains because it didn't see that memory allocated.
56     *) From the the ELF spec "...All shared object initializations happen
57         before the executable file gains control.  ...  Before the initialization
58         code for any object A is called, the initialization code for any other
59         objects that object A depends on are called.  For these purposes, an object
60         A depends on another object B, if B appears in Ads list of needed objects
61         (recorded in the DT_NEEDED entries of the dynamic structure). The order of
62         initialization for circular dependencies is undefined."  uClibc's shared
63         lib loader should be fixed to run ctors in the specified order.
64     *) poll emulation using select() for old 2.0.x uClinux kernels
65         in libc/sysdeps/linux/common/poll.c fails some python self-tests.
66         Of course, modern systems using the actuall poll() syscall work fine.
67     *) Rework the build system Makefile to eliminate recursive make.
68     *) Build both pic and non-pic objects where appropriate, so that
69         static libs need not pay the pic size penalty.
70     *) Cleanup/scrub all the Makefile copyright junk
71     *) Debugging pthreads with gdb does not work at all on mips
72     *) Debugging pthreads with gdb initially appears to work, but
73         fails to function correctly on arm
74
75
76 TODO list for AFTER the uClibc 1.0.0 release:
77 -------------------------------------------------
78     *) Add support for Linux 2.6.x NPTL pthreads, futexes, etc
79     *) Add support for Linux 2.6.x fast vsyscalls
80     *) Enable pristine source tree builds
81     *) Fix regex so it isn't so stinking big
82     *) Fix glob so it isn't so stinking big
83     *) run 'nm -D --size-sort -t d libuClibc-0.9.26.so' and work on the
84         biggest things (i.e. stuff at the end of the list) to make
85         them smaller.
86     <more wishlist items here>
87
88
89
90
91 -----------------------------------------------------------------------------
92 Manuel's todo:
93
94   1) Little things that need fixing:
95   ----------------------------------
96   a) Fix bug in *printf: outdigit precison bug
97   b) Check that gnu/bsd extension members tm_gmtoff and tm_zone in struct tm
98      are respected where they should be.
99   c) Implement the obstack printf funcs for glibc compat.
100   d) Implement glibc 'a' flag for scanf string conversions.
101   e) Allow use of the older non-table-based ctype functions when using
102      stub locale support. (smaller)
103
104   2) Additional str{f|p}time issues.
105   ----------------------------------
106   a) Spacing issue wrt strptime.
107   b) Support locale specific alternate digits.  (data is in place)
108   c) Support locale era in year designations.   (data is in place)
109   d) Deal with mb format string issues in strftime.
110   e) Implement wcsftime.
111
112   3) Other locale issues (my implementation):
113   -------------------------------------------
114   a) Do a little more clean up of ctype and wctype.
115   b) Rework of the locale data organization to make using locales reasonable
116      when staticly linking.  (mmap)
117   c) Rewrite the locale data generation tools to process the text specifications
118      rather than relying on glibc.
119   d) Adapt regex lib to use my collation data and add the necessary collating
120      item tables to support SUSv3 required features.
121   e) transliteration of unsupported wchars in 8-bit locales (like glibc).
122   f) Support ISO/IEC 14652 draft locale extensions (LC_PAPER, etc).
123   g) Implement strfrom.
124   h) Shift-state codeset locale support?
125
126   4) Misc:
127   --------
128   a) Port uClibc to other OSs (including elks), or even bare metal (libgloss).
129   b) Write a space-efficient gettext substitute, to avoid storing large amounts
130      of redundant data.
131