diff options
author | marcel <marcel@FreeBSD.org> | 2002-10-19 19:16:03 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2002-10-19 19:16:03 +0000 |
commit | d35d608c0774a40070b89879d9410bdf473177d7 (patch) | |
tree | a5d88a56e3884938d35135eb41dd619975aba723 /sys/sys/linker.h | |
parent | c5e66cd2c6877a700af9fbf50ea239377f827424 (diff) | |
download | FreeBSD-src-d35d608c0774a40070b89879d9410bdf473177d7.zip FreeBSD-src-d35d608c0774a40070b89879d9410bdf473177d7.tar.gz |
Add two hooks to signal module load and module unload to MD code.
The primary reason for this is to allow MD code to process machine
specific attributes, segments or sections in the ELF file and
update machine specific state accordingly. An immediate use of this
is in the ia64 port where unwind information is updated to allow
debugging and tracing in/across modules. Note that this commit
does not add the functionality to the ia64 port. See revision 1.9
of ia64/ia64/elf_machdep.c.
Validated on: alpha, i386, ia64
Diffstat (limited to 'sys/sys/linker.h')
-rw-r--r-- | sys/sys/linker.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/linker.h b/sys/sys/linker.h index d15a387..5e0a760 100644 --- a/sys/sys/linker.h +++ b/sys/sys/linker.h @@ -233,6 +233,9 @@ Elf_Addr elf_lookup(linker_file_t, Elf_Word, int); const Elf_Sym *elf_get_sym(linker_file_t _lf, Elf_Word _symidx); const char *elf_get_symname(linker_file_t _lf, Elf_Word _symidx); +int elf_cpu_load_file(linker_file_t); +int elf_cpu_unload_file(linker_file_t); + /* values for type */ #define ELF_RELOC_REL 1 #define ELF_RELOC_RELA 2 |