summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
Commit message (Collapse)AuthorAgeFilesLines
* llvm-mc: Don't crash when using -n and we see a directive before the initial ↵Daniel Dunbar2010-09-091-0/+30
| | | | | | | | section. - This is annoying, because we have to scatter this check everywhere that could emit real data, but I see no better solution. llvm-svn: 113552
* llvm-mc: Make sure we exit != 0 if any errors are encountered.Daniel Dunbar2010-09-091-8/+10
| | | | llvm-svn: 113551
* MCELF: Write relocation fragments in the right endian.Benjamin Kramer2010-09-091-5/+26
| | | | | | - This code is gross, but does the job for now. llvm-svn: 113509
* Make ELF OS ABI dependent on the OS from target triple.Roman Divacky2010-09-091-4/+13
| | | | llvm-svn: 113508
* MC: Give a (lame) hard error if a .org directive would create an unreasonablyDaniel Dunbar2010-09-091-1/+1
| | | | | | large object file (> 1GB). llvm-svn: 113494
* ELF_STB_Local is 0 so setting and checking it must be done speciallyRoman Divacky2010-09-082-3/+5
| | | | llvm-svn: 113375
* Unresolved weak symbols have value equal zero.Roman Divacky2010-09-081-1/+1
| | | | llvm-svn: 113358
* change the MC "ParseInstruction" interface to make it the Chris Lattner2010-09-081-7/+0
| | | | | | | implementation's job to check for and lex the EndOfStatement marker. llvm-svn: 113347
* MCELF: Align symtab, relocation sections and section headers properly. Patch ↵Benjamin Kramer2010-09-061-12/+24
| | | | | | by Krister Wombell. llvm-svn: 113155
* Get rid of "passing signed into unsigned parameter" warning on PPC.Bill Wendling2010-09-031-1/+1
| | | | llvm-svn: 112995
* Add AsmParser support for the ELF .previous directive. Patch by Roman Divacky.Benjamin Kramer2010-09-025-1/+15
| | | | llvm-svn: 112849
* Allow MCSA_WeakRef in ELF. Patch by Roman Divacky.Benjamin Kramer2010-09-021-1/+1
| | | | llvm-svn: 112834
* Fix .debug_range for linux. Patch by Krister Wombell.Devang Patel2010-09-022-0/+2
| | | | llvm-svn: 112830
* Use absolute label for DW_AT_stmt_list if a target does not prefer offset here.Devang Patel2010-08-312-0/+3
| | | | | | This patch was developed on top of original patch by Artur Pietrek. llvm-svn: 112678
* This is the second of three patches to implement support for the .loc directiveKevin Enderby2010-08-312-1/+57
| | | | | | | | | | and output the dwarf line number tables. This takes the current loc info after an instruction is assembled and saves the needed info into an object that has vector and for each section. These objects will be used for the final patch to build and emit the encoded dwarf line number tables. Again for now this is only in the Mach-O streamer but at some point will move to a more generic place. llvm-svn: 112668
* Allow creation of SHT_NULL sections, from Roman Divacky.Benjamin Kramer2010-08-311-0/+1
| | | | llvm-svn: 112605
* MCELF: The value of all common symbols is the offset from the start of the ↵Benjamin Kramer2010-08-301-3/+5
| | | | | | section. Patch by Roman Divacky. llvm-svn: 112492
* The value is offset from the start of the section for non-common symbols, ↵Benjamin Kramer2010-08-301-0/+2
| | | | | | submitted by Jordan Gordeev. llvm-svn: 112473
* Index external symbols by symbol table instead of parent section, by Roman ↵Benjamin Kramer2010-08-301-1/+1
| | | | | | Divacky. llvm-svn: 112472
* Mark all common symbols external. This is not exactly correct but it lets appsBenjamin Kramer2010-08-301-2/+3
| | | | | | link for now and can be adjusted later. Patch by Roman Divacky. llvm-svn: 112471
* squish dead code.Chris Lattner2010-08-281-9/+8
| | | | llvm-svn: 112350
* MCELF: Port EmitInstruction changes from MachO streamer. Patch by Roman Divacky.Benjamin Kramer2010-08-271-41/+46
| | | | llvm-svn: 112260
* MCELF: Always overwrite FixedValue.Benjamin Kramer2010-08-271-2/+3
| | | | llvm-svn: 112259
* MCELF: Fix a thinko of mine.Benjamin Kramer2010-08-261-1/+3
| | | | llvm-svn: 112203
* MCELF: Compensate for the addend on i386. Patch by Roman Divacky, with some ↵Benjamin Kramer2010-08-261-14/+7
| | | | | | cleanups. llvm-svn: 112197
* MCELF: Use precomputed symbol indices, patch by Roman Divacky.Benjamin Kramer2010-08-251-11/+7
| | | | llvm-svn: 112079
* MC: Fix inconsistant naming in COFF object writer. Patch by Cameron Esfahani.Michael J. Spencer2010-08-251-3/+4
| | | | llvm-svn: 112076
* Change the parsing of .loc back to allow the LineNumber field to be optional asKevin Enderby2010-08-241-7/+8
| | | | | | it is with other assemblers. llvm-svn: 111967
* Fix COFF x86-64 relocations. PR7960.Michael J. Spencer2010-08-241-42/+45
| | | | | | Multiple symbol reloc handling part of the patch by Cameron Esfahani. llvm-svn: 111963
* First bit of support for the dwarf .loc directive. This patch updates theKevin Enderby2010-08-242-19/+97
| | | | | | | | | | needed parsing for the .loc directive and saves the current info from that into the context. The next patch will take the current loc info after an instruction is assembled and save that info into a vector for each section for use to build the line number tables. The patch after that will encode the info from those vectors into the output file as the dwarf line tables. llvm-svn: 111956
* MC/AsmParser: Change ParseExpression to use ParseIdentifier(), to supportDaniel Dunbar2010-08-241-5/+9
| | | | | | dollars in identifiers. llvm-svn: 111946
* MC/Parser: Accept leading dollar signs in identifiers.Daniel Dunbar2010-08-241-0/+24
| | | | | | | | - Implemented by manually splicing the tokens. If this turns out to be problematically platform specific, a more elegant solution would be to implement some context dependent lexing support. llvm-svn: 111934
* Relocate against parent if the symbol is not in section or it's a common ↵Benjamin Kramer2010-08-241-1/+2
| | | | | | symbol, from Roman Divacky. llvm-svn: 111925
* fix rdar://7997827 - Accept and ignore LL and ULL suffixes on integer literals.Chris Lattner2010-08-241-2/+26
| | | | | | Also fix 0b010 syntax to actually work while we're at it :-) llvm-svn: 111876
* Fix thinko. Having no tests is great ...Benjamin Kramer2010-08-231-4/+4
| | | | llvm-svn: 111848
* Reduce code duplication.Benjamin Kramer2010-08-231-26/+10
| | | | llvm-svn: 111846
* ELFObjectWriter: Run ComputeSymbolTable before recording relocations. This ↵Benjamin Kramer2010-08-231-85/+21
| | | | | | way we can use the information it has computed and don't have to recompute the same stuff over and over again. llvm-svn: 111844
* Add the symbol offset to the relocation value when we relocate against ↵Benjamin Kramer2010-08-231-2/+3
| | | | | | section. By Roman Divacky. llvm-svn: 111824
* Use the proper relocation section + cleanup, from Roman Divacky.Benjamin Kramer2010-08-231-3/+5
| | | | llvm-svn: 111819
* Revert part of my last commit. the mingw32 build bot doesn't seem to like it.Michael J. Spencer2010-08-231-1/+0
| | | | llvm-svn: 111793
* Workaround broken jump tables on x86-64 COFF.Michael J. Spencer2010-08-231-0/+1
| | | | llvm-svn: 111792
* MC: Add partial x86-64 support to COFF.Michael J. Spencer2010-08-211-17/+43
| | | | llvm-svn: 111728
* MCELF: Count the section orders properly. Patch by Roman Divacky.Benjamin Kramer2010-08-191-7/+7
| | | | llvm-svn: 111517
* MC/ELF: Allow null values in virtual sections, ELF doesn't use specialDaniel Dunbar2010-08-181-1/+16
| | | | | | directives for putting contents in .bss, for example. llvm-svn: 111376
* Remove dead code. Fixes a GCC warning.Benjamin Kramer2010-08-171-4/+1
| | | | llvm-svn: 111271
* Sketch i386 relocations handling, from Roman Divacky.Benjamin Kramer2010-08-171-24/+45
| | | | | | Hello world builds & runs now on i386/ELF with -integrated-as. llvm-svn: 111264
* Use the correct entry size for relocation entries, from Roman Divacky.Benjamin Kramer2010-08-171-2/+6
| | | | llvm-svn: 111259
* Differentiate between RELA and REL relocations, from Roman Divacky.Benjamin Kramer2010-08-171-6/+8
| | | | llvm-svn: 111252
* One baby step towards i386 ELF, from Roman Divacky.Benjamin Kramer2010-08-171-2/+3
| | | | llvm-svn: 111247
* Try to silence a overeager GCC warning.Benjamin Kramer2010-08-171-0/+2
| | | | llvm-svn: 111214
OpenPOWER on IntegriCloud