linker_if.m (179231) | linker_if.m (192859) |
---|---|
1#- 2# Copyright (c) 2000 Doug Rabson 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24# SUCH DAMAGE. 25# | 1#- 2# Copyright (c) 2000 Doug Rabson 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24# SUCH DAMAGE. 25# |
26# $FreeBSD: head/sys/kern/linker_if.m 179231 2008-05-23 04:06:49Z jb $ | 26# $FreeBSD: head/sys/kern/linker_if.m 192859 2009-05-26 21:39:09Z sson $ |
27# 28 29#include <sys/linker.h> 30 31INTERFACE linker; 32 33# 34# Lookup a symbol in the file's symbol table. If the symbol is not --- 65 unchanged lines hidden (view full) --- 100# in the ELF file, returning info in the linker CTF structure. 101# 102METHOD int ctf_get { 103 linker_file_t file; 104 linker_ctf_t *lc; 105}; 106 107# | 27# 28 29#include <sys/linker.h> 30 31INTERFACE linker; 32 33# 34# Lookup a symbol in the file's symbol table. If the symbol is not --- 65 unchanged lines hidden (view full) --- 100# in the ELF file, returning info in the linker CTF structure. 101# 102METHOD int ctf_get { 103 linker_file_t file; 104 linker_ctf_t *lc; 105}; 106 107# |
108# Get the symbol table, returning it in **symtab. Return the 109# number of symbols, otherwise zero. 110# 111METHOD long symtab_get { 112 linker_file_t file; 113 Elf_Sym **symtab; 114}; 115 116# 117# Get the string table, returning it in *strtab. Return the 118# size (in bytes) of the string table, otherwise zero. 119# 120METHOD long strtab_get { 121 linker_file_t file; 122 caddr_t *strtab; 123}; 124 125# |
|
108# Load a file, returning the new linker_file_t in *result. If 109# the class does not recognise the file type, zero should be 110# returned, without modifying *result. If the file is 111# recognised, the file should be loaded, *result set to the new 112# file and zero returned. If some other error is detected an 113# appropriate errno should be returned. 114# 115STATICMETHOD int load_file { --- 12 unchanged lines hidden --- | 126# Load a file, returning the new linker_file_t in *result. If 127# the class does not recognise the file type, zero should be 128# returned, without modifying *result. If the file is 129# recognised, the file should be loaded, *result set to the new 130# file and zero returned. If some other error is detected an 131# appropriate errno should be returned. 132# 133STATICMETHOD int load_file { --- 12 unchanged lines hidden --- |