This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] Fix -static -lpthread


On Tue, Aug 14, 2001 at 01:06:06PM +0200, Jakub Jelinek wrote:
>  extern const int __pthread_provide_wrappers;
>  static const int *const __pthread_require_wrappers =
>    &__pthread_provide_wrappers;

Note that we needn't waste data space on this.  Use

  asm(".extern __pthread_provide_wrappers");

for the require and

  asm(".globl __pthread_provide_wrappers; __pthread_provide_wrappers = 0");

for the provide.  You might want to macro-ize this in case
someone ever uses anything but gas.

Hmm.. this would actually be a reasonable thing to add to
gcc via pragmas...


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]