summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/bootstrap.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-10-02 08:04:56 +0000
committerpeter <peter@FreeBSD.org>1998-10-02 08:04:56 +0000
commita79bd7a6936b3a8aaf3380ee46f024d3a28c85ac (patch)
treec9caacf819531efd502706e53b9eb3ec3e7e1e4c /sys/boot/common/bootstrap.h
parent5a6b93580f29cf14bf248c85ae0743ae6a85f7a0 (diff)
downloadFreeBSD-src-a79bd7a6936b3a8aaf3380ee46f024d3a28c85ac.zip
FreeBSD-src-a79bd7a6936b3a8aaf3380ee46f024d3a28c85ac.tar.gz
First shot at loading elf symbols. Things are a bit strange because
of the ..umm.. "wierd" way binutils lays out the file. The section headers are nearly at the end of the file and this is a problem when loading from a .gz file which can't seek backwards (or has a limited reverse seek, ~2K from memory). This is intended to be compatable with the ddb/db_elf.c code and the alpha/libalpha/elf_freebsd.c layout. I've studied these (which are NetBSD derived) but did it a bit differently. Naturally the process is similar since it's supposed to end up with the same result.
Diffstat (limited to 'sys/boot/common/bootstrap.h')
-rw-r--r--sys/boot/common/bootstrap.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/boot/common/bootstrap.h b/sys/boot/common/bootstrap.h
index 2fadee0..1c4d00f 100644
--- a/sys/boot/common/bootstrap.h
+++ b/sys/boot/common/bootstrap.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: bootstrap.h,v 1.8 1998/09/26 10:51:37 dfr Exp $
+ * $Id: bootstrap.h,v 1.9 1998/09/30 19:25:26 peter Exp $
*/
#include <sys/types.h>
@@ -193,6 +193,8 @@ extern int elf_loadmodule(char *filename, vm_offset_t dest, struct loaded_module
#define MODINFOMD_AOUTEXEC 0x0001 /* a.out exec header */
#define MODINFOMD_ELFHDR 0x0002 /* ELF header */
+#define MODINFOMD_ELFSSYM 0x0003 /* ELF start of symbols */
+#define MODINFOMD_ELFESYM 0x0004 /* ELF end of symbols */
#define MODINFOMD_NOCOPY 0x8000 /* don't copy this metadata to the kernel */
#define KLD_IDENT_SYMNAME "kld_identifier_"
OpenPOWER on IntegriCloud