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

📄 scnhdr.h

📁 早期freebsd实现
💻 H
字号:
/* * Copyright (c) 1988 The Regents of the University of California. * All rights reserved. * * This code is derived from software contributed to Berkeley by * Computer Consoles Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software *    must display the following acknowledgement: *	This product includes software developed by the University of *	California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * *	@(#)scnhdr.h	5.3 (Berkeley) 6/1/90 */struct scnhdr {	char		s_name[8];	/* section name */	long		s_paddr;	/* physical address */	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 line numbers */	unsigned short	s_nreloc;	/* number of relocation entries */	unsigned short	s_nlnno;	/* number of line number entries */	long		s_flags;	/* flags */	};#define	SCNHDR	struct scnhdr#define	SCNHSZ	sizeof(SCNHDR)/* * Define constants for names of "special" sections */#define _TEXT ".text"#define _DATA ".data"#define _BSS  ".bss"#define _TV  ".tv"/* * The low 4 bits of s_flags is used as a section "type" */#define STYP_REG	0x00		/* "regular" section:						allocated, relocated, loaded */#define STYP_DSECT	0x01		/* "dummy" section:						not allocated, relocated,						not loaded */#define STYP_NOLOAD	0x02		/* "noload" section:						allocated, relocated,						 not loaded */#define STYP_GROUP	0x04		/* "grouped" section:						formed of input sections */#define STYP_PAD	0x08		/* "padding" section:						not allocated, not relocated,						 loaded */#define STYP_COPY	0x10		/* "copy" section:						for decision function used						by field update;  not						allocated, not relocated,						loaded;  reloc & lineno						entries processed normally */#define	STYP_TEXT	0x20		/* section contains text only */#define STYP_DATA	0x40		/* section contains data only */#define STYP_BSS	0x80		/* section contains bss only *//* *  In a minimal file or an update file, a new function *  (as compared with a replaced function) is indicated by S_NEWFCN */#define S_NEWFCN  0x10/* * In 3b Update Files (output of ogen), sections which appear in SHARED * segments of the Pfile will have the S_SHRSEG flag set by ogen, to inform * dufr that updating 1 copy of the proc. will update all process invocations. */#define S_SHRSEG	0x20

⌨️ 快捷键说明

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