⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mipscoff.h

📁 mips架构的bootloader,99左右的版本 但源代码现在没人更新了
💻 H
字号:
#ifndef _MIPSCOFF_#define _MIPSCOFF_ /* The information in this file was copied from a number of  * different files. The copyright banners are shown below. *//* --------------------------------------------------------- *//* | Copyright (c) 1986-1992 MIPS Technologies, Inc.       | *//* | All Rights Reserved.                                  | *//* --------------------------------------------------------- *//*	Copyright (c) 1984 AT&T	*//*	  All Rights Reserved  	*//*	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T	*//*	The copyright notice above does not evidence any   	*//*	actual or intended publication of such source code.	*//* (C) Copyright 1984 by Third Eye Software, Inc. * * Third Eye Software, Inc. grants reproduction and use rights to * all parties, PROVIDED that this comment is maintained in the copy. * * Third Eye makes no claims about the applicability of this * symbol table to a particular use. */typedef	struct aouthdr {	short	magic;		/* see above				*/	short	vstamp;		/* version stamp			*/	long	tsize;		/* text size in bytes, padded to DW bdry*/	long	dsize;		/* initialized data "  "		*/	long	bsize;		/* uninitialized data "   "		*/	long	entry;		/* entry pt.				*/	long	text_start;	/* base of text used for this file	*/	long	data_start;	/* base of data used for this file	*/	long	bss_start;	/* base of bss used for this file	*/	long	gprmask;	/* general purpose register mask	*/	long	cprmask[4];	/* co-processor register masks		*/	long	gp_value;	/* the gp value used for this object    */	} AOUTHDR;struct filehdr {	unsigned short	f_magic;	/* magic number */	unsigned short	f_nscns;	/* number of sections */	long		f_timdat;	/* time & date stamp */	long		f_symptr;	/* file pointer to symbolic header */	long		f_nsyms;	/* sizeof(symbolic hdr) */	unsigned short	f_opthdr;	/* sizeof(optional hdr) */	unsigned short	f_flags;	/* flags */	};struct scnhdr {	char		s_name[8];	/* section name */	long		s_paddr;	/* physical address, aliased s_nlib */	long		s_vaddr;	/* virtual address */	long		s_size;		/* section size */	long		s_scnptr;	/* file ptr to raw data for section */	long		s_relptr;	/* file ptr to relocation */	long		s_lnnoptr;	/* file ptr to gp histogram */	unsigned short	s_nreloc;	/* number of relocation entries */	unsigned short	s_nlnno;	/* number of gp histogram entries */	long		s_flags;	/* flags */	};typedef struct scnhdr SCNHDR;typedef struct {	long	iss;		/* index into String Space of name */	long	value;		/* value of symbol */	unsigned long st : 6;	/* symbol type */	unsigned long sc  : 5;	/* storage class - text, data, etc */	unsigned long reserved : 1;	/* reserved */	unsigned long index : 20;	/* index into sym/aux table */	} SYMR;typedef struct {	unsigned long jmptbl:1;	/* symbol is a jump table entry for shlibs */	unsigned long cobol_main:1;	/* symbol is a cobol main procedure */	unsigned long reserved:14;	/* reserved for future use */	short	ifd;		/* where the iss and index fields point into */	SYMR	asym;		/* symbol for the external */	} EXTR;typedef struct {	short	magic;		/* to verify validity of the table */	short	vstamp;		/* version stamp */	long	ilineMax;	/* number of line number entries */	long	cbLine;		/* number of bytes for line number entries */	long	cbLineOffset;	/* offset to start of line number entries*/	long	idnMax;		/* max index into dense number table */	long	cbDnOffset;	/* offset to start dense number table */	long	ipdMax;		/* number of procedures */	long	cbPdOffset;	/* offset to procedure descriptor table */	long	isymMax;	/* number of local symbols */	long	cbSymOffset;	/* offset to start of local symbols*/	long	ioptMax;	/* max index into optimization symbol entries */	long	cbOptOffset;	/* offset to optimization symbol entries */	long	iauxMax;	/* number of auxillary symbol entries */	long	cbAuxOffset;	/* offset to start of auxillary symbol entries*/	long	issMax;		/* max index into local strings */	long	cbSsOffset;	/* offset to start of local strings */	long	issExtMax;	/* max index into external strings */	long	cbSsExtOffset;	/* offset to start of external strings */	long	ifdMax;		/* number of file descriptor entries */	long	cbFdOffset;	/* offset to file descriptor table */	long	crfd;		/* number of relative file descriptor entries */	long	cbRfdOffset;	/* offset to relative file descriptor table */	long	iextMax;	/* max index into external symbols */	long	cbExtOffset;	/* offset to start of external symbol entries*/	} HDRR; #endif /* _MIPSCOFF_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -