NASM 2.06rc15
[nasm/avx512.git] / output / outelf.c
blobd13fb98abc84146e33e57db25b233c8ae01f1cf0
1 /*
2 * Common code for outelf32 and outelf64
3 */
5 #include "compiler.h"
7 #include <stdio.h>
8 #include <stdlib.h>
9 #include <inttypes.h>
11 #include "nasm.h"
13 #include "output/elfcommon.h"
14 #include "output/dwarf.h"
15 #include "output/outelf.h"
17 const struct elf_known_section elf_known_sections[] = {
18 { ".text", SHT_PROGBITS, SHF_ALLOC|SHF_EXECINSTR, 16 },
19 { ".rodata", SHT_PROGBITS, SHF_ALLOC, 4 },
20 { ".lrodata", SHT_PROGBITS, SHF_ALLOC, 4 },
21 { ".data", SHT_PROGBITS, SHF_ALLOC|SHF_WRITE, 4 },
22 { ".ldata", SHT_PROGBITS, SHF_ALLOC|SHF_WRITE, 4 },
23 { ".bss", SHT_NOBITS, SHF_ALLOC|SHF_WRITE, 4 },
24 { ".lbss", SHT_NOBITS, SHF_ALLOC|SHF_WRITE, 4 },
25 { ".tdata", SHT_PROGBITS, SHF_ALLOC|SHF_WRITE|SHF_TLS, 4 },
26 { ".tbss", SHT_NOBITS, SHF_ALLOC|SHF_WRITE|SHF_TLS, 4 },
27 { ".comment", SHT_PROGBITS, 0, 1 },
28 { NULL, SHT_PROGBITS, SHF_ALLOC, 1 } /* default */