]> git.ozlabs.org Git - yaboot.git/blob - include/linux/elf.h
Fix rare fstab parsing bug in yabootconfig
[yaboot.git] / include / linux / elf.h
1 #ifndef _LINUX_ELF_H
2 #define _LINUX_ELF_H
3
4 #include <types.h>
5 #include <asm/elf.h>
6
7 /* 32-bit ELF base types. */
8 typedef __u32   Elf32_Addr;
9 typedef __u16   Elf32_Half;
10 typedef __u32   Elf32_Off;
11 typedef __s32   Elf32_Sword;
12 typedef __u32   Elf32_Word;
13
14 /* 64-bit ELF base types. */
15 typedef __u64   Elf64_Addr;
16 typedef __u16   Elf64_Half;
17 typedef __s16   Elf64_SHalf;
18 typedef __u64   Elf64_Off;
19 typedef __s64   Elf64_Sword;
20 typedef __u64   Elf64_Word;
21
22 /* These constants are for the segment types stored in the image headers */
23 #define PT_NULL    0
24 #define PT_LOAD    1
25 #define PT_DYNAMIC 2
26 #define PT_INTERP  3
27 #define PT_NOTE    4
28 #define PT_SHLIB   5
29 #define PT_PHDR    6
30 #define PT_LOPROC  0x70000000
31 #define PT_HIPROC  0x7fffffff
32 #define PT_MIPS_REGINFO         0x70000000
33
34 /* Flags in the e_flags field of the header */
35 #define EF_MIPS_NOREORDER 0x00000001
36 #define EF_MIPS_PIC       0x00000002
37 #define EF_MIPS_CPIC      0x00000004
38 #define EF_MIPS_ARCH      0xf0000000
39
40 /* These constants define the different elf file types */
41 #define ET_NONE   0
42 #define ET_REL    1
43 #define ET_EXEC   2
44 #define ET_DYN    3
45 #define ET_CORE   4
46 #define ET_LOPROC 0xff00
47 #define ET_HIPROC 0xffff
48
49 /* These constants define the various ELF target machines */
50 #define EM_NONE  0
51 #define EM_M32   1
52 #define EM_SPARC 2
53 #define EM_386   3
54 #define EM_68K   4
55 #define EM_88K   5
56 #define EM_486   6   /* Perhaps disused */
57 #define EM_860   7
58
59 #define EM_MIPS         8       /* MIPS R3000 (officially, big-endian only) */
60
61 #define EM_MIPS_RS4_BE 10       /* MIPS R4000 big-endian */
62
63 #define EM_PARISC      15       /* HPPA */
64
65 #define EM_SPARC32PLUS 18       /* Sun's "v8plus" */
66
67 #define EM_PPC         20       /* PowerPC */
68 #define EM_PPC64       21       /* PowerPC 64-bit */
69
70 #define EM_SPARCV9     43       /* SPARC v9 64-bit */
71
72 /*
73  * This is an interim value that we will use until the committee comes
74  * up with a final number.
75  */
76 #define EM_ALPHA        0x9026
77
78
79 /* This is the info that is needed to parse the dynamic section of the file */
80 #define DT_NULL         0
81 #define DT_NEEDED       1
82 #define DT_PLTRELSZ     2
83 #define DT_PLTGOT       3
84 #define DT_HASH         4
85 #define DT_STRTAB       5
86 #define DT_SYMTAB       6
87 #define DT_RELA         7
88 #define DT_RELASZ       8
89 #define DT_RELAENT      9
90 #define DT_STRSZ        10
91 #define DT_SYMENT       11
92 #define DT_INIT         12
93 #define DT_FINI         13
94 #define DT_SONAME       14
95 #define DT_RPATH        15
96 #define DT_SYMBOLIC     16
97 #define DT_REL          17
98 #define DT_RELSZ        18
99 #define DT_RELENT       19
100 #define DT_PLTREL       20
101 #define DT_DEBUG        21
102 #define DT_TEXTREL      22
103 #define DT_JMPREL       23
104 #define DT_LOPROC       0x70000000
105 #define DT_HIPROC       0x7fffffff
106 #define DT_MIPS_RLD_VERSION     0x70000001
107 #define DT_MIPS_TIME_STAMP      0x70000002
108 #define DT_MIPS_ICHECKSUM       0x70000003
109 #define DT_MIPS_IVERSION        0x70000004
110 #define DT_MIPS_FLAGS           0x70000005
111   #define RHF_NONE                0
112   #define RHF_HARDWAY             1
113   #define RHF_NOTPOT              2
114 #define DT_MIPS_BASE_ADDRESS    0x70000006
115 #define DT_MIPS_CONFLICT        0x70000008
116 #define DT_MIPS_LIBLIST         0x70000009
117 #define DT_MIPS_LOCAL_GOTNO     0x7000000a
118 #define DT_MIPS_CONFLICTNO      0x7000000b
119 #define DT_MIPS_LIBLISTNO       0x70000010
120 #define DT_MIPS_SYMTABNO        0x70000011
121 #define DT_MIPS_UNREFEXTNO      0x70000012
122 #define DT_MIPS_GOTSYM          0x70000013
123 #define DT_MIPS_HIPAGENO        0x70000014
124 #define DT_MIPS_RLD_MAP         0x70000016
125
126 /* This info is needed when parsing the symbol table */
127 #define STB_LOCAL  0
128 #define STB_GLOBAL 1
129 #define STB_WEAK   2
130
131 #define STT_NOTYPE  0
132 #define STT_OBJECT  1
133 #define STT_FUNC    2
134 #define STT_SECTION 3
135 #define STT_FILE    4
136
137 #define ELF32_ST_BIND(x) ((x) >> 4)
138 #define ELF32_ST_TYPE(x) (((unsigned int) x) & 0xf)
139
140 /* Symbolic values for the entries in the auxiliary table
141    put on the initial stack */
142 #define AT_NULL   0     /* end of vector */
143 #define AT_IGNORE 1     /* entry should be ignored */
144 #define AT_EXECFD 2     /* file descriptor of program */
145 #define AT_PHDR   3     /* program headers for program */
146 #define AT_PHENT  4     /* size of program header entry */
147 #define AT_PHNUM  5     /* number of program headers */
148 #define AT_PAGESZ 6     /* system page size */
149 #define AT_BASE   7     /* base address of interpreter */
150 #define AT_FLAGS  8     /* flags */
151 #define AT_ENTRY  9     /* entry point of program */
152 #define AT_NOTELF 10    /* program is not ELF */
153 #define AT_UID    11    /* real uid */
154 #define AT_EUID   12    /* effective uid */
155 #define AT_GID    13    /* real gid */
156 #define AT_EGID   14    /* effective gid */
157 #define AT_PLATFORM 15  /* string identifying CPU for optimizations */
158 #define AT_HWCAP  16    /* arch dependent hints at CPU capabilities */
159
160 typedef struct dynamic{
161   Elf32_Sword d_tag;
162   union{
163     Elf32_Sword d_val;
164     Elf32_Addr  d_ptr;
165   } d_un;
166 } Elf32_Dyn;
167
168 typedef struct {
169   Elf64_Word d_tag;             /* entry tag value */
170   union {
171     Elf64_Word d_val;
172     Elf64_Word d_ptr;
173   } d_un;
174 } Elf64_Dyn;
175
176 /* The following are used with relocations */
177 #define ELF32_R_SYM(x) ((x) >> 8)
178 #define ELF32_R_TYPE(x) ((x) & 0xff)
179
180 #define R_386_NONE      0
181 #define R_386_32        1
182 #define R_386_PC32      2
183 #define R_386_GOT32     3
184 #define R_386_PLT32     4
185 #define R_386_COPY      5
186 #define R_386_GLOB_DAT  6
187 #define R_386_JMP_SLOT  7
188 #define R_386_RELATIVE  8
189 #define R_386_GOTOFF    9
190 #define R_386_GOTPC     10
191 #define R_386_NUM       11
192
193 #define R_MIPS_NONE             0
194 #define R_MIPS_16               1
195 #define R_MIPS_32               2
196 #define R_MIPS_REL32            3
197 #define R_MIPS_26               4
198 #define R_MIPS_HI16             5
199 #define R_MIPS_LO16             6
200 #define R_MIPS_GPREL16          7
201 #define R_MIPS_LITERAL          8
202 #define R_MIPS_GOT16            9
203 #define R_MIPS_PC16             10
204 #define R_MIPS_CALL16           11
205 #define R_MIPS_GPREL32          12
206 /* The remaining relocs are defined on Irix, although they are not
207    in the MIPS ELF ABI.  */
208 #define R_MIPS_UNUSED1          13
209 #define R_MIPS_UNUSED2          14
210 #define R_MIPS_UNUSED3          15
211 #define R_MIPS_SHIFT5           16
212 #define R_MIPS_SHIFT6           17
213 #define R_MIPS_64               18
214 #define R_MIPS_GOT_DISP         19
215 #define R_MIPS_GOT_PAGE         20
216 #define R_MIPS_GOT_OFST         21
217 /*
218  * The following two relocation types are specified in the the MIPS ABI
219  * conformance guide version 1.2 but not yet in the psABI.
220  */
221 #define R_MIPS_GOTHI16          22
222 #define R_MIPS_GOTLO16          23
223 #define R_MIPS_SUB              24
224 #define R_MIPS_INSERT_A         25
225 #define R_MIPS_INSERT_B         26
226 #define R_MIPS_DELETE           27
227 #define R_MIPS_HIGHER           28
228 #define R_MIPS_HIGHEST          29
229 /*
230  * The following two relocation types are specified in the the MIPS ABI
231  * conformance guide version 1.2 but not yet in the psABI.
232  */
233 #define R_MIPS_CALLHI16         30
234 #define R_MIPS_CALLLO16         31
235 /*
236  * This range is reserved for vendor specific relocations.
237  */
238 #define R_MIPS_LOVENDOR         100
239 #define R_MIPS_HIVENDOR         127
240
241
242 /*
243  * Sparc ELF relocation types
244  */
245 #define R_SPARC_NONE            0
246 #define R_SPARC_8               1
247 #define R_SPARC_16              2
248 #define R_SPARC_32              3
249 #define R_SPARC_DISP8           4
250 #define R_SPARC_DISP16          5
251 #define R_SPARC_DISP32          6
252 #define R_SPARC_WDISP30         7
253 #define R_SPARC_WDISP22         8
254 #define R_SPARC_HI22            9
255 #define R_SPARC_22              10
256 #define R_SPARC_13              11
257 #define R_SPARC_LO10            12
258 #define R_SPARC_GOT10           13
259 #define R_SPARC_GOT13           14
260 #define R_SPARC_GOT22           15
261 #define R_SPARC_PC10            16
262 #define R_SPARC_PC22            17
263 #define R_SPARC_WPLT30          18
264 #define R_SPARC_COPY            19
265 #define R_SPARC_GLOB_DAT        20
266 #define R_SPARC_JMP_SLOT        21
267 #define R_SPARC_RELATIVE        22
268 #define R_SPARC_UA32            23
269 #define R_SPARC_PLT32           24
270 #define R_SPARC_HIPLT22         25
271 #define R_SPARC_LOPLT10         26
272 #define R_SPARC_PCPLT32         27
273 #define R_SPARC_PCPLT22         28
274 #define R_SPARC_PCPLT10         29
275 #define R_SPARC_10              30
276 #define R_SPARC_11              31
277 #define R_SPARC_WDISP16         40
278 #define R_SPARC_WDISP19         41
279 #define R_SPARC_7               43
280 #define R_SPARC_5               44
281 #define R_SPARC_6               45
282
283 /* Bits present in AT_HWCAP, primarily for Sparc32.  */
284
285 #define HWCAP_SPARC_FLUSH       1    /* CPU supports flush instruction. */
286 #define HWCAP_SPARC_STBAR       2
287 #define HWCAP_SPARC_SWAP        4
288 #define HWCAP_SPARC_MULDIV      8
289 #define HWCAP_SPARC_V9          16
290
291
292 /*
293  * 68k ELF relocation types
294  */
295 #define R_68K_NONE      0
296 #define R_68K_32        1
297 #define R_68K_16        2
298 #define R_68K_8         3
299 #define R_68K_PC32      4
300 #define R_68K_PC16      5
301 #define R_68K_PC8       6
302 #define R_68K_GOT32     7
303 #define R_68K_GOT16     8
304 #define R_68K_GOT8      9
305 #define R_68K_GOT32O    10
306 #define R_68K_GOT16O    11
307 #define R_68K_GOT8O     12
308 #define R_68K_PLT32     13
309 #define R_68K_PLT16     14
310 #define R_68K_PLT8      15
311 #define R_68K_PLT32O    16
312 #define R_68K_PLT16O    17
313 #define R_68K_PLT8O     18
314 #define R_68K_COPY      19
315 #define R_68K_GLOB_DAT  20
316 #define R_68K_JMP_SLOT  21
317 #define R_68K_RELATIVE  22
318
319 /*
320  * Alpha ELF relocation types
321  */
322 #define R_ALPHA_NONE            0       /* No reloc */
323 #define R_ALPHA_REFLONG         1       /* Direct 32 bit */
324 #define R_ALPHA_REFQUAD         2       /* Direct 64 bit */
325 #define R_ALPHA_GPREL32         3       /* GP relative 32 bit */
326 #define R_ALPHA_LITERAL         4       /* GP relative 16 bit w/optimization */
327 #define R_ALPHA_LITUSE          5       /* Optimization hint for LITERAL */
328 #define R_ALPHA_GPDISP          6       /* Add displacement to GP */
329 #define R_ALPHA_BRADDR          7       /* PC+4 relative 23 bit shifted */
330 #define R_ALPHA_HINT            8       /* PC+4 relative 16 bit shifted */
331 #define R_ALPHA_SREL16          9       /* PC relative 16 bit */
332 #define R_ALPHA_SREL32          10      /* PC relative 32 bit */
333 #define R_ALPHA_SREL64          11      /* PC relative 64 bit */
334 #define R_ALPHA_OP_PUSH         12      /* OP stack push */
335 #define R_ALPHA_OP_STORE        13      /* OP stack pop and store */
336 #define R_ALPHA_OP_PSUB         14      /* OP stack subtract */
337 #define R_ALPHA_OP_PRSHIFT      15      /* OP stack right shift */
338 #define R_ALPHA_GPVALUE         16
339 #define R_ALPHA_GPRELHIGH       17
340 #define R_ALPHA_GPRELLOW        18
341 #define R_ALPHA_IMMED_GP_16     19
342 #define R_ALPHA_IMMED_GP_HI32   20
343 #define R_ALPHA_IMMED_SCN_HI32  21
344 #define R_ALPHA_IMMED_BR_HI32   22
345 #define R_ALPHA_IMMED_LO32      23
346 #define R_ALPHA_COPY            24      /* Copy symbol at runtime */
347 #define R_ALPHA_GLOB_DAT        25      /* Create GOT entry */
348 #define R_ALPHA_JMP_SLOT        26      /* Create PLT entry */
349 #define R_ALPHA_RELATIVE        27      /* Adjust by program base */
350
351 /* Legal values for e_flags field of Elf64_Ehdr.  */
352
353 #define EF_ALPHA_32BIT          1       /* All addresses are below 2GB */
354
355
356 typedef struct elf32_rel {
357   Elf32_Addr    r_offset;
358   Elf32_Word    r_info;
359 } Elf32_Rel;
360
361 typedef struct elf64_rel {
362   Elf64_Addr r_offset;  /* Location at which to apply the action */
363   Elf64_Word r_info;    /* index and type of relocation */
364 } Elf64_Rel;
365
366 typedef struct elf32_rela{
367   Elf32_Addr    r_offset;
368   Elf32_Word    r_info;
369   Elf32_Sword   r_addend;
370 } Elf32_Rela;
371
372 typedef struct elf64_rela {
373   Elf64_Addr r_offset;  /* Location at which to apply the action */
374   Elf64_Word r_info;    /* index and type of relocation */
375   Elf64_Word r_addend;  /* Constant addend used to compute value */
376 } Elf64_Rela;
377
378 typedef struct elf32_sym{
379   Elf32_Word    st_name;
380   Elf32_Addr    st_value;
381   Elf32_Word    st_size;
382   unsigned char st_info;
383   unsigned char st_other;
384   Elf32_Half    st_shndx;
385 } Elf32_Sym;
386
387 typedef struct elf64_sym {
388   Elf32_Word st_name;           /* Symbol name, index in string tbl (yes, Elf32) */
389   unsigned char st_info;        /* Type and binding attributes */
390   unsigned char st_other;       /* No defined meaning, 0 */
391   Elf64_Half st_shndx;          /* Associated section index */
392   Elf64_Addr st_value;          /* Value of the symbol */
393   Elf64_Word st_size;           /* Associated symbol size */
394 } Elf64_Sym;
395
396
397 #define EI_NIDENT       16
398
399 /* Minimum amount of the header we need to determine whether
400  * we have an executable PPC32/PPC64 Elf file or not.
401  */
402 typedef struct elf_ident_t {
403   unsigned char e_ident[EI_NIDENT];
404   __u16         e_type;
405   __u16         e_machine;
406 } Elf_Ident;
407
408 typedef struct elf32_hdr{
409   unsigned char e_ident[EI_NIDENT];
410   Elf32_Half    e_type;
411   Elf32_Half    e_machine;
412   Elf32_Word    e_version;
413   Elf32_Addr    e_entry;  /* Entry point */
414   Elf32_Off     e_phoff;
415   Elf32_Off     e_shoff;
416   Elf32_Word    e_flags;
417   Elf32_Half    e_ehsize;
418   Elf32_Half    e_phentsize;
419   Elf32_Half    e_phnum;
420   Elf32_Half    e_shentsize;
421   Elf32_Half    e_shnum;
422   Elf32_Half    e_shstrndx;
423 } Elf32_Ehdr;
424
425 typedef struct elf64_hdr {
426   unsigned char e_ident[16];            /* ELF "magic number" */
427   Elf64_SHalf e_type;
428   Elf64_Half e_machine;
429   __s32 e_version;
430   Elf64_Addr e_entry;           /* Entry point virtual address */
431   Elf64_Off e_phoff;            /* Program header table file offset */
432   Elf64_Off e_shoff;            /* Section header table file offset */
433   __s32 e_flags;
434   Elf64_SHalf e_ehsize;
435   Elf64_SHalf e_phentsize;
436   Elf64_SHalf e_phnum;
437   Elf64_SHalf e_shentsize;
438   Elf64_SHalf e_shnum;
439   Elf64_SHalf e_shstrndx;
440 } Elf64_Ehdr;
441
442 /* These constants define the permissions on sections in the program
443    header, p_flags. */
444 #define PF_R            0x4
445 #define PF_W            0x2
446 #define PF_X            0x1
447
448 typedef struct elf32_phdr{
449   Elf32_Word    p_type;
450   Elf32_Off     p_offset;
451   Elf32_Addr    p_vaddr;
452   Elf32_Addr    p_paddr;
453   Elf32_Word    p_filesz;
454   Elf32_Word    p_memsz;
455   Elf32_Word    p_flags;
456   Elf32_Word    p_align;
457 } Elf32_Phdr;
458
459 typedef struct elf64_phdr {
460   __s32 p_type;
461   __s32 p_flags;
462   Elf64_Off p_offset;           /* Segment file offset */
463   Elf64_Addr p_vaddr;           /* Segment virtual address */
464   Elf64_Addr p_paddr;           /* Segment physical address */
465   Elf64_Word p_filesz;          /* Segment size in file */
466   Elf64_Word p_memsz;           /* Segment size in memory */
467   Elf64_Word p_align;           /* Segment alignment, file & memory */
468 } Elf64_Phdr;
469
470 /* sh_type */
471 #define SHT_NULL        0
472 #define SHT_PROGBITS    1
473 #define SHT_SYMTAB      2
474 #define SHT_STRTAB      3
475 #define SHT_RELA        4
476 #define SHT_HASH        5
477 #define SHT_DYNAMIC     6
478 #define SHT_NOTE        7
479 #define SHT_NOBITS      8
480 #define SHT_REL         9
481 #define SHT_SHLIB       10
482 #define SHT_DYNSYM      11
483 #define SHT_NUM         12
484 #define SHT_LOPROC      0x70000000
485 #define SHT_HIPROC      0x7fffffff
486 #define SHT_LOUSER      0x80000000
487 #define SHT_HIUSER      0xffffffff
488 #define SHT_MIPS_LIST           0x70000000
489 #define SHT_MIPS_CONFLICT       0x70000002
490 #define SHT_MIPS_GPTAB          0x70000003
491 #define SHT_MIPS_UCODE          0x70000004
492
493 /* sh_flags */
494 #define SHF_WRITE       0x1
495 #define SHF_ALLOC       0x2
496 #define SHF_EXECINSTR   0x4
497 #define SHF_MASKPROC    0xf0000000
498 #define SHF_MIPS_GPREL  0x10000000
499
500 /* special section indexes */
501 #define SHN_UNDEF       0
502 #define SHN_LORESERVE   0xff00
503 #define SHN_LOPROC      0xff00
504 #define SHN_HIPROC      0xff1f
505 #define SHN_ABS         0xfff1
506 #define SHN_COMMON      0xfff2
507 #define SHN_HIRESERVE   0xffff
508 #define SHN_MIPS_ACCOMON        0xff00
509  
510 typedef struct {
511   Elf32_Word    sh_name;
512   Elf32_Word    sh_type;
513   Elf32_Word    sh_flags;
514   Elf32_Addr    sh_addr;
515   Elf32_Off     sh_offset;
516   Elf32_Word    sh_size;
517   Elf32_Word    sh_link;
518   Elf32_Word    sh_info;
519   Elf32_Word    sh_addralign;
520   Elf32_Word    sh_entsize;
521 } Elf32_Shdr;
522
523 typedef struct elf64_shdr {
524   Elf32_Word sh_name;           /* Section name, index in string tbl (yes Elf32) */
525   Elf32_Word sh_type;           /* Type of section (yes Elf32) */
526   Elf64_Word sh_flags;          /* Miscellaneous section attributes */
527   Elf64_Addr sh_addr;           /* Section virtual addr at execution */
528   Elf64_Off sh_offset;          /* Section file offset */
529   Elf64_Word sh_size;           /* Size of section in bytes */
530   Elf32_Word sh_link;           /* Index of another section (yes Elf32) */
531   Elf32_Word sh_info;           /* Additional section information (yes Elf32) */
532   Elf64_Word sh_addralign;      /* Section alignment */
533   Elf64_Word sh_entsize;        /* Entry size if section holds table */
534 } Elf64_Shdr;
535
536 #define EI_MAG0         0               /* e_ident[] indexes */
537 #define EI_MAG1         1
538 #define EI_MAG2         2
539 #define EI_MAG3         3
540 #define EI_CLASS        4
541 #define EI_DATA         5
542 #define EI_VERSION      6
543 #define EI_PAD          7
544
545 #define ELFMAG0         0x7f            /* EI_MAG */
546 #define ELFMAG1         'E'
547 #define ELFMAG2         'L'
548 #define ELFMAG3         'F'
549 #define ELFMAG          "\177ELF"
550 #define SELFMAG         4
551
552 #define ELFCLASSNONE    0               /* EI_CLASS */
553 #define ELFCLASS32      1
554 #define ELFCLASS64      2
555 #define ELFCLASSNUM     3
556
557 #define ELFDATANONE     0               /* e_ident[EI_DATA] */
558 #define ELFDATA2LSB     1
559 #define ELFDATA2MSB     2
560
561 #define EV_NONE         0               /* e_version, EI_VERSION */
562 #define EV_CURRENT      1
563 #define EV_NUM          2
564
565 /* Notes used in ET_CORE */
566 #define NT_PRSTATUS     1
567 #define NT_PRFPREG      2
568 #define NT_PRPSINFO     3
569 #define NT_TASKSTRUCT   4
570
571 /* Note header in a PT_NOTE section */
572 typedef struct elf32_note {
573   Elf32_Word    n_namesz;       /* Name size */
574   Elf32_Word    n_descsz;       /* Content size */
575   Elf32_Word    n_type;         /* Content type */
576 } Elf32_Nhdr;
577
578 /* Note header in a PT_NOTE section */
579 /*
580  * For now we use the 32 bit version of the structure until we figure
581  * out whether we need anything better.  Note - on the Alpha, "unsigned int"
582  * is only 32 bits.
583  */
584 typedef struct elf64_note {
585   Elf32_Word n_namesz;  /* Name size */
586   Elf32_Word n_descsz;  /* Content size */
587   Elf32_Word n_type;    /* Content type */
588 } Elf64_Nhdr;
589
590 #if ELF_CLASS == ELFCLASS32
591
592 extern Elf32_Dyn _DYNAMIC [];
593 #define elfhdr          elf32_hdr
594 #define elf_phdr        elf32_phdr
595 #define elf_note        elf32_note
596
597 #else
598
599 extern Elf64_Dyn _DYNAMIC [];
600 #define elfhdr          elf64_hdr
601 #define elf_phdr        elf64_phdr
602 #define elf_note        elf64_note
603
604 #endif
605
606
607 #endif /* _LINUX_ELF_H */