aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/linker_if.m
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>2008-05-23 04:06:49 +0000
committerJohn Birrell <jb@FreeBSD.org>2008-05-23 04:06:49 +0000
commit82c4945b5b9aaea2a756fc573d57bf37b8febcaf (patch)
tree0759da79f3dd96680a0396282fe7f40d8f93d170 /sys/kern/linker_if.m
parent833b4a131aca943bc6e916f3005fb86fa0023c40 (diff)
downloadsrc-82c4945b5b9aaea2a756fc573d57bf37b8febcaf.tar.gz
src-82c4945b5b9aaea2a756fc573d57bf37b8febcaf.zip
Add the ctf_get method.
Notes
Notes: svn path=/head/; revision=179231
Diffstat (limited to 'sys/kern/linker_if.m')
-rw-r--r--sys/kern/linker_if.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/kern/linker_if.m b/sys/kern/linker_if.m
index 1530da28e099..aadcf048bc4b 100644
--- a/sys/kern/linker_if.m
+++ b/sys/kern/linker_if.m
@@ -96,6 +96,15 @@ METHOD void unload {
};
#
+# Load CTF data if necessary and if there is a .SUNW_ctf section
+# in the ELF file, returning info in the linker CTF structure.
+#
+METHOD int ctf_get {
+ linker_file_t file;
+ linker_ctf_t *lc;
+};
+
+#
# Load a file, returning the new linker_file_t in *result. If
# the class does not recognise the file type, zero should be
# returned, without modifying *result. If the file is