summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCELF.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge MCELF.h into MCSymbolELF.h.Rafael Espindola2015-06-021-85/+0
| | | | | | | Now that we have a dedicated type for ELF symbol, these helper functions can become member function of MCSymbolELF. llvm-svn: 238864
* The fragment implies the section, don't store both.Rafael Espindola2015-06-011-0/+1
| | | | | | This reduces MCSymbol from 64 to 56 bytes on x86_64. llvm-svn: 238747
* Move Flags from MCSymbolData to MCSymbol.Rafael Espindola2015-05-291-21/+12
| | | | llvm-svn: 238598
* Pass MCSymbols to the helper functions in MCELF.h.Rafael Espindola2015-05-291-8/+16
| | | | llvm-svn: 238596
* Add STB_GNU_UNIQUE to the ELF writer.Rafael Espindola2015-01-231-2/+2
| | | | | | This lets llvm-mc assemble files produced by gcc. llvm-svn: 226895
* [MC] Constify MCELF::GetVisibility and MCELF::getOtherUlrich Weigand2014-07-111-2/+2
| | | | | | | These two routines didn't take a "const MCSymbolData &SD" like the other MCELF::Get routines for some reason ... llvm-svn: 212834
* [mc] Fix ELF st_other flag.Logan Chien2013-12-051-3/+3
| | | | | | | | | | | | ELF_Other_Weakref and ELF_Other_ThumbFunc seems to be LLVM internal ELF symbol flags. These should not be emitted to object file. This commit defines ELF_STO_Shift for the target-defined flags for st_other, and increase the value of ELF_Other_Shift to 16. llvm-svn: 196440
* Move the STT_FILE symbols out of the normal symbol table processing forJoerg Sonnenberger2013-10-291-4/+3
| | | | | | | ELF. They can overlap with the other symbols, e.g. if a source file "foo.c" contains a function "foo" with a static variable "c". llvm-svn: 193569
* ELF symbol table field st_other support, Jack Carter2013-02-191-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | excluding visibility bits. Generic STO handling at the Target level. The st_other field of the ELF symbol table is one byte in size. The first 2 bytes are used for generic visibility and are currently handled by llvm. The other six bits are processor specific and need to be set at the target level. A couple of notes: The new static methods for accessing and setting the "other" flags in include/llvm/MC/MCELF.h match the style guide and not the other methods in the file. I don't like the inconsistency, but feel I should follow the prescribed lowerUpper() convention. STO_ value definitions are not specified in gnu land as consistently as the STT_ and STB_ fields. Probably because the latter were defined in a standards doc and the former defined partially in code. I have stuck with the full byte definition of the flags. Contributer: Zoran Jovanovic llvm-svn: 175561
* Added Mapping Symbols for ARM ELFTim Northover2012-12-071-1/+1
| | | | | | | | | | Before this patch, when you objdump an LLVM-compiled file, objdump tried to decode data-in-code sections as if they were code. This patch adds the missing Mapping Symbols, as defined by "ELF for the ARM Architecture" (ARM IHI 0044D). Patch based on work by Greg Fitzgerald. llvm-svn: 169609
* Add support for gnu_indirect_function.Roman Divacky2011-12-121-2/+2
| | | | llvm-svn: 146377
* Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to ↵Evan Cheng2011-07-251-1/+0
| | | | | | createMCAsmBackend. llvm-svn: 136010
* Move TargetAsmParser.h TargetAsmBackend.h and TargetAsmLexer.h to MC where ↵Evan Cheng2011-07-231-1/+1
| | | | | | they belong. llvm-svn: 135833
* sets bit 0 of the function address of thumb function in .symtabRafael Espindola2011-05-161-2/+2
| | | | | | | | | | ("T is 1 if the target symbol S has type STT_FUNC and the symbol addresses a Thumb instruction ;it is 0 otherwise." from "ELF for the ARM Architecture" 4.7.1.2) Patch by Koan-Sin Tan! llvm-svn: 131406
* Make all static functions become static class methods. Move shared ↵Jan Sjödin2011-02-281-0/+72
(duplicated) functions to new MCELF class. llvm-svn: 126686
OpenPOWER on IntegriCloud