Re: how uclibc generate header files ?

liaoxinglong at icubecorp.com liaoxinglong at icubecorp.com
Sat Jul 14 05:33:08 UTC 2012


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.nop at gmail.com>
>  To: liaoxinglong at icubecorp.com
>  Cc: uClibc at uclibc.org <uClibc at uclibc.org>
>  Subject: Re: how uclibc generate header files ?
>  Sent: Jul 14 '12 04:42
>  
>  On Jul 13, 2012 11:50 AM, <[LINK: mailto:liaoxinglong at icubecorp.com]
>  liaoxinglong at 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 at uclibc.org] uClibc at uclibc.org
>  > [LINK: http://lists.busybox.net/mailman/listinfo/uclibc]
>  http://lists.busybox.net/mailman/listinfo/uclibc


More information about the uClibc mailing list