diff options
author | obrien <obrien@FreeBSD.org> | 2001-01-06 06:07:52 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-01-06 06:07:52 +0000 |
commit | 7de31c3e1c7d8c876eb8490a93e2583b1554600a (patch) | |
tree | c1fe56ea0cb4c7ffbfab6a88302b3f563316409d /gnu/lib/libgcc | |
parent | f0c46a9d00fc9fe4644cef5784e76b360f5036c7 (diff) | |
download | FreeBSD-src-7de31c3e1c7d8c876eb8490a93e2583b1554600a.zip FreeBSD-src-7de31c3e1c7d8c876eb8490a93e2583b1554600a.tar.gz |
Force strong references to several pthread_* functions which are weakly
referenced to by libgcc.a.
This is needed when linking statically as SVR4 (ie, ELF) behavior is to only
link in a module if it satisfies an undefined strong reference from somewhere.
(this surprises a lot of people) Things are different when using shared libs,
the entire library and its modules and their symbols are available at run-time
(when the weak reference is seen to still be unsatisfied and is satisfied on
the spot), this is not the case with static libs.
Thus one can have a static binary with unresolved week references, and at
run-time dereference a NULL pointer.
Submitted by: eischen
Diffstat (limited to 'gnu/lib/libgcc')
0 files changed, 0 insertions, 0 deletions