From 4d6f145a3b60e54f195b0bf07688cb29e67d9f84 Mon Sep 17 00:00:00 2001 From: Daniel Eischen Date: Sun, 8 Jun 2003 17:29:32 +0000 Subject: [PATCH] Provide a reference to __sys_write. The implementation uses this when debugging is enabled so the symbol needs to be resolved before rtld locking is enabled. I may not really know what I'm talking about, but it works. Submitted by: kan --- lib/libkse/support/thr_support.c | 3 +++ lib/libpthread/support/thr_support.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/libkse/support/thr_support.c b/lib/libkse/support/thr_support.c index 7ffa5d77fc9..1b3c4ef8f90 100644 --- a/lib/libkse/support/thr_support.c +++ b/lib/libkse/support/thr_support.c @@ -32,6 +32,8 @@ #include #include +#include "thr_private.h" + __strong_reference(clock_gettime, _thr_clock_gettime); __strong_reference(kse_exit, _thr_kse_exit); __strong_reference(kse_wakeup, _thr_kse_wakeup); @@ -53,3 +55,4 @@ __strong_reference(strcpy, _thr_strcpy); __strong_reference(strlen, _thr_strlen); __strong_reference(bzero, _thr_bzero); +__strong_reference(__sys_write, _thr__sys_write); diff --git a/lib/libpthread/support/thr_support.c b/lib/libpthread/support/thr_support.c index 7ffa5d77fc9..1b3c4ef8f90 100644 --- a/lib/libpthread/support/thr_support.c +++ b/lib/libpthread/support/thr_support.c @@ -32,6 +32,8 @@ #include #include +#include "thr_private.h" + __strong_reference(clock_gettime, _thr_clock_gettime); __strong_reference(kse_exit, _thr_kse_exit); __strong_reference(kse_wakeup, _thr_kse_wakeup); @@ -53,3 +55,4 @@ __strong_reference(strcpy, _thr_strcpy); __strong_reference(strlen, _thr_strlen); __strong_reference(bzero, _thr_bzero); +__strong_reference(__sys_write, _thr__sys_write);