Displaying 5 results from an estimated 5 matches for "getbss".
2012 Oct 17
0
[LLVMdev] R_ARM_ABS32 disassembly with integrated-as
...EXECINSTR |
ELF::SHF_ALLOC, SectionKind::getText());
EmitCodeAlignment(4, 0);
+ EmitMappingSymbol(/*IsData*/false);
}
void SetSectionBss() {
SetSection(".bss", ELF::SHT_NOBITS,
ELF::SHF_WRITE |
ELF::SHF_ALLOC, SectionKind::getBSS());
EmitCodeAlignment(4, 0);
+ EmitMappingSymbol(/*IsData*/true);
}
};
}
@@ -188,6 +200,55 @@ void MCELFStreamer::EmitThumbFunc(MCSymbol *Func) {
MCSymbolData &SD = getAssembler().getOrCreateSymbolData(*Func);
SD.setFlags(SD.getFlags() | ELF_Other_ThumbFunc);
+
+ // Use thi...
2010 Jun 21
2
[LLVMdev] MC: Object file specific parsing
...reate the Symbol as a common or local common with Size and Pow2Alignment
- if (IsLocal) {
- Out.EmitZerofill(Ctx.getMachOSection("__DATA", "__bss",
- MCSectionMachO::S_ZEROFILL, 0,
- SectionKind::getBSS()),
- Sym, Size, 1 << Pow2Alignment);
- return false;
- }
-
- Out.EmitCommonSymbol(Sym, Size, 1 << Pow2Alignment);
- return false;
-}
-
-/// ParseDirectiveDarwinZerofill
-/// ::= .zerofill segname , sectname [, identifier , size_expression [
-/// , align_...
2012 Oct 16
2
[LLVMdev] R_ARM_ABS32 disassembly with integrated-as
Attached is an example of how to reproduce the issue. It uses a C
file that happens to has a bunch of switch statements which are
encoded as jump tables, giving us data-in-code. Usage:
To build object files with clang via the -integrated-as versus via GCC:
$ export NDK_DIR=<my_ndk_dir>
$ export LLVM_DIR=<my_llvm_bin_dir>
$ make
To test that the generated objects contain the same
2010 Jul 16
0
[LLVMdev] Win32 COFF Support - Patch 3
...LIZED_DATA |
> + COFF::IMAGE_SCN_MEM_READ |
> + COFF::IMAGE_SCN_MEM_WRITE;
> +
> + int Selection = COFF::IMAGE_COMDAT_SELECT_LARGEST;
> +
> + MCSection const *Section = MCStreamer::getContext().getCOFFSection(
> + SectionName, Characteristics, Selection, SectionKind::getBSS()
> + );
Please spell the type as "const MCSection *". I would also eliminate the
Selection variable.
> +
> + MCSectionData *SectionData = getSectionData(Section);
> +
> + if (SectionData->getAlignment() < ByteAlignment)
> + SectionData->setAlignment(Byt...
2010 Jul 14
2
[LLVMdev] Win32 COFF Support - Patch 3
On Sun, Jul 11, 2010 at 6:10 PM, Chris Lattner <clattner at apple.com> wrote:
> This probably needs to be slightly tweaked to work with mainline. I don't see anything objectionable, but I think Daniel needs to review this one.
Updated patch to work with mainline.
http://github.com/Bigcheese/llvm-mirror/commit/d19a4c82c18afc4830c09b70f02d162292231c94
- Michael Spencer