llvm-6502/lib/MC
Rafael Espindola d179886f05 Be more strict on when we produce an undefined reference. In gas a file with
just

.type   foo,@object

will produce an undefined reference to foo. On the other hand, a file with
just

.weakref bar, foo

will not. It is somewhat hard to support both in MC since both statements
should create the symbols. It should be possible if we really need to by
adding to the flags, but hopefully that is not necessary.

With this patch we do not produce a undefined reference in any of those cases.
The assembly file needs an actual use for the undefined reference to be
present.

This is in preparation for a patch implementing .weakref.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117735 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-29 23:09:31 +00:00
..
MCDisassembler Make some symbols static, move classes into anonymous namespaces. 2010-10-22 17:35:07 +00:00
MCParser Improvements to .section parsing: 2010-10-28 21:33:33 +00:00
CMakeLists.txt Add a MCObjectFormat class so that code common to all targets that use a 2010-10-16 18:23:53 +00:00
ELFObjectWriter.cpp Be more strict on when we produce an undefined reference. In gas a file with 2010-10-29 23:09:31 +00:00
MachObjectWriter.cpp On ELF we need to know which symbols are used in relocations to decide if 2010-10-05 15:11:03 +00:00
Makefile start straightening out libedis's dependencies and make it fit 2010-07-20 18:25:19 +00:00
MCAsmInfo.cpp allow target-specific label suffixes, patch by Yuri Gribov! 2010-09-22 22:19:53 +00:00
MCAsmInfoCOFF.cpp Revert part of my last commit. the mingw32 build bot doesn't seem to like it. 2010-08-23 05:25:23 +00:00
MCAsmInfoDarwin.cpp Fix .debug_range for linux. Patch by Krister Wombell. 2010-09-02 16:43:44 +00:00
MCAsmStreamer.cpp Tiny patch for proof-of-concept cleanup of ARMAsmPrinter::EmitStartOfAsmFile() 2010-09-30 02:45:56 +00:00
MCAssembler.cpp This is the last major patch to implement support for the .loc directive 2010-09-30 16:52:03 +00:00
MCCodeEmitter.cpp MCCodeEmitter: Add target independent fixup flag for is-pc-relative. 2010-03-19 10:43:23 +00:00
MCContext.cpp Incorporate suggestions by Daniel Dunbar after his review. Thanks Daniel! 2010-10-04 20:17:24 +00:00
MCDisassembler.cpp
MCDwarf.cpp Incorporate suggestions by Daniel Dunbar after his review. Thanks Daniel! 2010-10-04 20:17:24 +00:00
MCELFStreamer.cpp Make sure weak symbols are listed after the local ones. 2010-10-06 16:47:31 +00:00
MCExpr.cpp Implement TLSLD. 2010-10-28 15:02:40 +00:00
MCInst.cpp MC: Change MCInst::dump_pretty to not include a trailing newline. 2010-05-26 15:18:13 +00:00
MCInstPrinter.cpp add a new MCInstPrinter::getOpcodeName interface, when it is 2010-02-11 22:39:10 +00:00
MCLabel.cpp Added support in MC for Directional Local Labels. 2010-05-17 23:08:19 +00:00
MCLoggingStreamer.cpp MC: Add missing forward in MCLoggingStreamer. 2010-10-06 20:36:47 +00:00
MCMachOStreamer.cpp This adds a Darwin x86_64 relocation encoding for a subtraction expression 2010-10-02 00:13:41 +00:00
MCNullStreamer.cpp Add a InitSections method to the streamer interface. 2010-09-15 21:48:40 +00:00
MCObjectFormat.cpp Move the definition of this to the source file to anchor the vtable. 2010-10-19 00:37:30 +00:00
MCObjectStreamer.cpp Avoid some Mach-O specific alignment being done on ELF. 2010-09-22 22:27:05 +00:00
MCObjectWriter.cpp This is the last major patch to implement support for the .loc directive 2010-09-30 16:52:03 +00:00
MCSection.cpp switch MCSectionCOFF from a syntactic to semantic representation, 2010-05-07 17:17:41 +00:00
MCSectionCOFF.cpp Add hook in MCSection to decide when to use "optimized nops", for each 2010-10-04 17:32:41 +00:00
MCSectionELF.cpp Add hook in MCSection to decide when to use "optimized nops", for each 2010-10-04 17:32:41 +00:00
MCSectionMachO.cpp Trailing whitespace. 2010-10-21 22:04:05 +00:00
MCStreamer.cpp This is the last major patch to implement support for the .loc directive 2010-09-30 16:52:03 +00:00
MCSymbol.cpp MC/Mach-O: Mark absolute variable's appropriately, and add Mach-O support for 2010-05-05 19:01:05 +00:00
MCValue.cpp MCValue: Change to holding MCSymbolRefExprs instead of MCSymbols, we will need this for accessing to symbol modifiers. 2010-03-18 00:59:10 +00:00
TargetAsmBackend.cpp Add a MCObjectFormat class so that code common to all targets that use a 2010-10-16 18:23:53 +00:00
WinCOFFObjectWriter.cpp Fix Warnings. 2010-10-21 20:49:38 +00:00
WinCOFFStreamer.cpp MC-COFF: Add support for default-null weak externals. 2010-10-16 08:25:57 +00:00