summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_system.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-09-15 21:49:13 +0000
committerbde <bde@FreeBSD.org>2002-09-15 21:49:13 +0000
commitf2b1deb3e0a6a616985f728745fae05aeb2b18cd (patch)
tree9c972726ddb94b6e1d379684d8ad98ec1a0aef94 /lib/libpthread/thread/thr_system.c
parentb1a95d8312a609032f4b724907a5070e6870fddf (diff)
downloadFreeBSD-src-f2b1deb3e0a6a616985f728745fae05aeb2b18cd.zip
FreeBSD-src-f2b1deb3e0a6a616985f728745fae05aeb2b18cd.tar.gz
Made this work on i386's at least. It wants ELF section headers for
symbol table sections. Reconstruct the necessary section headers from (ksym_start, ksym_end). This was much easier than converting to use module metadata, and just works for static symbols, unlike db_kld when there is no module metadata. Initialize (ksym_start, ksym_end) from bootinfo on i386's only. The boot loader should load section headers for all sections that it loads, and apparently did this for at least the symbol table sections when this file last worked under FreeBSD (on alphas only) and always did this under NetBSD (where this file was obtained from). At least on i386's, boot2 discards the section headers (except for converting them to (bootinfo.bi_symtab, bootinfo.bi_esymtab), and as far as I can tell, loader(8) discards them apart from converting them to the bootinfo values and module metadata.
Diffstat (limited to 'lib/libpthread/thread/thr_system.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud