[PATCH] Fix -static -lpthread
Richard Henderson
rth@twiddle.net
Sat Aug 18 13:48:00 GMT 2001
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~
More information about the Libc-hacker
mailing list