rdfload.h

来自「汇编编译器的最新版本的源码.买了自己动手写操作系统这本书的人一定要下」· C头文件 代码 · 共 32 行

H
32
字号
/* rdfload.h	RDOFF Object File loader library header file
 *
 * The Netwide Assembler is copyright (C) 1996 Simon Tatham and
 * Julian Hall. All rights reserved. The software is
 * redistributable under the license given in the file "LICENSE"
 * distributed in the NASM archive.
 *
 * See the file 'rdfload.c' for special license information for this
 * file.
 */

#ifndef RDOFF_RDFLOAD_H
#define RDOFF_RDFLOAD_H 1

#define RDOFF_UTILS

#include "rdoff.h"

typedef struct RDFModuleStruct {
    rdffile f;                  /* file structure */
    uint8_t *t, *d, *b;   /* text, data, and bss segments */
    int32_t textrel;
    int32_t datarel;
    int32_t bssrel;
    void *symtab;
} rdfmodule;

rdfmodule *rdfload(const char *filename);
int rdf_relocate(rdfmodule * m);

#endif

⌨️ 快捷键说明

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