Pull debug symbols in for statically linked binary.

Reviewed by: desichen
This commit is contained in:
David Xu 2004-08-21 11:49:19 +00:00
parent 5d492a0d63
commit 0dabb2c8a0
2 changed files with 8 additions and 0 deletions

View File

@ -73,6 +73,7 @@ int __pthread_cond_wait(pthread_cond_t *, pthread_mutex_t *);
int __pthread_mutex_lock(pthread_mutex_t *);
int __pthread_mutex_trylock(pthread_mutex_t *);
void _thread_init_hack(void);
extern int _thread_state_running;
static void init_private(void);
static void init_main_thread(struct pthread *thread);
@ -224,6 +225,9 @@ _libpthread_init(struct pthread *curthread)
if ((references[0] == NULL) || (libgcc_references[0] == NULL))
PANIC("Failed loading mandatory references in _thread_init");
/* Pull debug symbols in for static binary */
_thread_state_running = PS_RUNNING;
/*
* Check the size of the jump table to make sure it is preset
* with the correct number of entries.

View File

@ -73,6 +73,7 @@ int __pthread_cond_wait(pthread_cond_t *, pthread_mutex_t *);
int __pthread_mutex_lock(pthread_mutex_t *);
int __pthread_mutex_trylock(pthread_mutex_t *);
void _thread_init_hack(void);
extern int _thread_state_running;
static void init_private(void);
static void init_main_thread(struct pthread *thread);
@ -224,6 +225,9 @@ _libpthread_init(struct pthread *curthread)
if ((references[0] == NULL) || (libgcc_references[0] == NULL))
PANIC("Failed loading mandatory references in _thread_init");
/* Pull debug symbols in for static binary */
_thread_state_running = PS_RUNNING;
/*
* Check the size of the jump table to make sure it is preset
* with the correct number of entries.