search for: __pthread_join

Displaying 3 results from an estimated 3 matches for "__pthread_join".

2017 Jun 06
4
LLD support for mach-o aliases (weak or otherwise)
...ega-prime.co.uk/?p=121> The musl code does the following which currently errors out saying aliases are not currently supported: #undef weak_alias #define weak_alias(old, new) \ extern __typeof(old) new __attribute__((weak, alias(#old))) and the macro is used internally like this: int __pthread_join(pthread_t t, void **res) { // implementation here } weak_alias(__pthread_join, pthread_join); The problem is the actual export used by clients is an alias and I want to maintain source compatibility. I seem to have found a way to semi-emulate aliases (at least within one module). My goal...
2017 Jun 14
1
LLD support for mach-o aliases (weak or otherwise)
...e does the following which currently errors out saying aliases are not currently supported: > > #undef weak_alias > #define weak_alias(old, new) \ > extern __typeof(old) new __attribute__((weak, alias(#old))) > > and the macro is used internally like this: > > int __pthread_join(pthread_t t, void **res) > { > // implementation here > } > > weak_alias(__pthread_join, pthread_join); > > The problem is the actual export used by clients is an alias and I want to maintain source compatibility. > > I seem to have found a way to semi-emulate...
2017 Jun 14
4
LLD support for mach-o aliases (weak or otherwise)
...re not currently supported: >>> >>> #undef weak_alias >>> #define weak_alias(old, new) \ >>> extern __typeof(old) new __attribute__((weak, alias(#old))) >>> >>> and the macro is used internally like this: >>> >>> int __pthread_join(pthread_t t, void **res) >>> { >>> // implementation here >>> } >>> >>> weak_alias(__pthread_join, pthread_join); >>> >>> The problem is the actual export used by clients is an alias and I want to maintain source compatibility...