From 82c4945b5b9aaea2a756fc573d57bf37b8febcaf Mon Sep 17 00:00:00 2001 From: John Birrell Date: Fri, 23 May 2008 04:06:49 +0000 Subject: [PATCH] Add the ctf_get method. --- sys/kern/linker_if.m | 9 +++++++++ 1 file changed, 9 insertions(+) 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 @@ -95,6 +95,15 @@ METHOD void unload { linker_file_t file; }; +# +# 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