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/sparc64 | |
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/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/elf_machdep.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/sparc64/sparc64/elf_machdep.c b/sys/sparc64/sparc64/elf_machdep.c index 4889bc9..e4860c8 100644 --- a/sys/sparc64/sparc64/elf_machdep.c +++ b/sys/sparc64/sparc64/elf_machdep.c @@ -312,3 +312,17 @@ elf_reloc(linker_file_t lf, const void *data, int type) return (0); } + +int +elf_cpu_load_file(linker_file_t lf __unused) +{ + + return (0); +} + +int +elf_cpu_unload_file(linker_file_t lf __unused) +{ + + return (0); +} |