diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2006-06-21 20:42:08 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2006-06-21 20:42:08 +0000 |
| commit | 70f3778827568f17ddf0a3f6565bafad44115170 (patch) | |
| tree | 376c80ddfea4a0dea3d63af58ac39c477e221d70 /sys/kern/link_elf.c | |
| parent | 40bdac68d8bd6e70dd521fd9f902bd92d49c3a91 (diff) | |
Notes
Diffstat (limited to 'sys/kern/link_elf.c')
| -rw-r--r-- | sys/kern/link_elf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/link_elf.c b/sys/kern/link_elf.c index 14b9c2e7ffab..ac3fa99b8398 100644 --- a/sys/kern/link_elf.c +++ b/sys/kern/link_elf.c @@ -559,8 +559,6 @@ link_elf_load_file(linker_class_t cls, const char* filename, int strcnt; int vfslocked; - GIANT_REQUIRED; - shdr = NULL; lf = NULL; @@ -761,8 +759,10 @@ link_elf_load_file(linker_class_t cls, const char* filename, #ifdef GPROF /* Update profiling information with the new text segment. */ + mtx_lock(&Giant); kmupetext((uintfptr_t)(mapbase + segs[0]->p_vaddr - base_vaddr + segs[0]->p_memsz)); + mtx_unlock(&Giant); #endif ef->dynamic = (Elf_Dyn *) (mapbase + phdyn->p_vaddr - base_vaddr); |
