Thank you! I got it. i focused on gen_tcb-offsets.[cs], and thought that the tcb-offsets.h was generated like gen_tcb-offsets.[cs], missing the sed command in libpthread/nptl/sysdeps/Makefile.commonarch.
xinglong > -------Original Message------- > From: Bernhard Reutner-Fischer <rep.dot....@gmail.com> > To: liaoxingl...@icubecorp.com > Cc: uClibc@uclibc.org <uClibc@uclibc.org> > Subject: Re: how uclibc generate header files ? > Sent: Jul 14 '12 04:42 > > On Jul 13, 2012 11:50 AM, <[LINK: mailto:liaoxingl...@icubecorp.com] > liaoxingl...@icubecorp.com> wrote: > > > > Hi, can anyone tell me how uclibc generate header files like > tcb-offsets.h. i have a problem in generating tcb-offsets.h, in my > compiler, it redefine MULTIPLE_THREADS_OFFSET, PID_OFFSET and TID_OFFSET. > > git grep tcb-offset, it involves cpp and iirc awk, sed. > > HTH, > > > > > following are the contents of my tcb-offsets.h: > > #define MULTIPLE_THREADS_OFFSET -29792 > > #define PID_OFFSET -29684 > > #define TID_OFFSET -29688 > > #define MULTIPLE_THREADS_OFFSET 0 > > #define PID_OFFSET 0 > > #define TID_OFFSET 0 > > I only need the first define of the three macro. as you can guess, my > gen_tcb-offsets.s is different from other gen_tcb-offsets.s compiled by > other compilers. > > > > thanks. > > > > xinglong > > _______________________________________________ > > uClibc mailing list > > [LINK: mailto:uClibc@uclibc.org] uClibc@uclibc.org > > [LINK: http://lists.busybox.net/mailman/listinfo/uclibc] > http://lists.busybox.net/mailman/listinfo/uclibc _______________________________________________ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc