Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: flat.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* Copyright (C) 2002-2003 David McCullough <davidm@snapgear.com>
[2] Fix | Delete
* Copyright (C) 1998 Kenneth Albanowski <kjahds@kjahds.com>
[3] Fix | Delete
* The Silver Hammer Group, Ltd.
[4] Fix | Delete
*
[5] Fix | Delete
* This file provides the definitions and structures needed to
[6] Fix | Delete
* support uClinux flat-format executables.
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
#ifndef _LINUX_FLAT_H
[10] Fix | Delete
#define _LINUX_FLAT_H
[11] Fix | Delete
[12] Fix | Delete
[13] Fix | Delete
#define FLAT_VERSION 0x00000004L
[14] Fix | Delete
[15] Fix | Delete
#ifdef CONFIG_BINFMT_SHARED_FLAT
[16] Fix | Delete
#define MAX_SHARED_LIBS (4)
[17] Fix | Delete
#else
[18] Fix | Delete
#define MAX_SHARED_LIBS (1)
[19] Fix | Delete
#endif
[20] Fix | Delete
[21] Fix | Delete
/*
[22] Fix | Delete
* To make everything easier to port and manage cross platform
[23] Fix | Delete
* development, all fields are in network byte order.
[24] Fix | Delete
*/
[25] Fix | Delete
[26] Fix | Delete
struct flat_hdr {
[27] Fix | Delete
char magic[4];
[28] Fix | Delete
unsigned long rev; /* version (as above) */
[29] Fix | Delete
unsigned long entry; /* Offset of first executable instruction
[30] Fix | Delete
with text segment from beginning of file */
[31] Fix | Delete
unsigned long data_start; /* Offset of data segment from beginning of
[32] Fix | Delete
file */
[33] Fix | Delete
unsigned long data_end; /* Offset of end of data segment
[34] Fix | Delete
from beginning of file */
[35] Fix | Delete
unsigned long bss_end; /* Offset of end of bss segment from beginning
[36] Fix | Delete
of file */
[37] Fix | Delete
[38] Fix | Delete
/* (It is assumed that data_end through bss_end forms the bss segment.) */
[39] Fix | Delete
[40] Fix | Delete
unsigned long stack_size; /* Size of stack, in bytes */
[41] Fix | Delete
unsigned long reloc_start; /* Offset of relocation records from
[42] Fix | Delete
beginning of file */
[43] Fix | Delete
unsigned long reloc_count; /* Number of relocation records */
[44] Fix | Delete
unsigned long flags;
[45] Fix | Delete
unsigned long build_date; /* When the program/library was built */
[46] Fix | Delete
unsigned long filler[5]; /* Reservered, set to zero */
[47] Fix | Delete
};
[48] Fix | Delete
[49] Fix | Delete
#define FLAT_FLAG_RAM 0x0001 /* load program entirely into RAM */
[50] Fix | Delete
#define FLAT_FLAG_GOTPIC 0x0002 /* program is PIC with GOT */
[51] Fix | Delete
#define FLAT_FLAG_GZIP 0x0004 /* all but the header is compressed */
[52] Fix | Delete
#define FLAT_FLAG_GZDATA 0x0008 /* only data/relocs are compressed (for XIP) */
[53] Fix | Delete
#define FLAT_FLAG_KTRACE 0x0010 /* output useful kernel trace for debugging */
[54] Fix | Delete
[55] Fix | Delete
[56] Fix | Delete
[57] Fix | Delete
#endif /* _LINUX_FLAT_H */
[58] Fix | Delete
[59] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function