Home | History | Annotate | Download | only in MC

Lines Matching refs:ELF

1 //===- lib/MC/MCELFStreamer.cpp - ELF Object Output ------------===//
10 // This file assembles .s files and emits ELF .o object files.
30 #include "llvm/Support/ELF.h"
63 llvm_unreachable("ELF doesn't support this directive");
68 llvm_unreachable("ELF doesn't support this directive");
72 llvm_unreachable("ELF doesn't support this directive");
76 llvm_unreachable("ELF doesn't support this directive");
80 llvm_unreachable("ELF doesn't support this directive");
93 llvm_unreachable("ELF doesn't support this directive");
97 llvm_unreachable("ELF doesn't support this directive");
133 SetSection(".data", ELF::SHT_PROGBITS,
134 ELF::SHF_WRITE |ELF::SHF_ALLOC,
139 SetSection(".text", ELF::SHT_PROGBITS,
140 ELF::SHF_EXECINSTR |
141 ELF::SHF_ALLOC, SectionKind::getText());
145 SetSection(".bss", ELF::SHT_NOBITS,
146 ELF::SHF_WRITE |
147 ELF::SHF_ALLOC, SectionKind::getBSS());
170 if (Section.getFlags() & ELF::SHF_TLS)
171 MCELF::SetType(SD, ELF::STT_TLS);
255 llvm_unreachable("Invalid symbol attribute for ELF!");
262 MCELF::SetBinding(SD, ELF::STB_GLOBAL);
269 MCELF::SetBinding(SD, ELF::STB_WEAK);
275 MCELF::SetBinding(SD, ELF::STB_LOCAL);
281 MCELF::SetType(SD, ELF::STT_FUNC);
285 MCELF::SetType(SD, ELF::STT_GNU_IFUNC);
289 MCELF::SetType(SD, ELF::STT_OBJECT);
293 MCELF::SetType(SD, ELF::STT_TLS);
297 MCELF::SetType(SD, ELF::STT_COMMON);
301 MCELF::SetType(SD, ELF::STT_NOTYPE);
305 MCELF::SetVisibility(SD, ELF::STV_PROTECTED);
309 MCELF::SetVisibility(SD, ELF::STV_HIDDEN);
313 MCELF::SetVisibility(SD, ELF::STV_INTERNAL);
323 MCELF::SetBinding(SD, ELF::STB_GLOBAL);
327 MCELF::SetType(SD, ELF::STT_OBJECT);
331 ELF::SHT_NOBITS,
332 ELF::SHF_WRITE |
333 ELF::SHF_ALLOC,
350 MCELF::SetBinding(SD, ELF::STB_LOCAL);
448 MCELF::SetType(SD, ELF::STT_TLS);