2 * Common code for outelf32 and outelf64
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 */