llvm-6502/test/MC
Rafael Espindola c326067040 Don't produce relocations for a difference in a section with no symbols.
We were producing a relocation for
----------------
.section foo,bar
La:
Lb:
 .long   La-Lb
--------------

but not for

---------------------
  .section foo,bar
zed:
La:
Lb:
 .long   La-Lb
----------------

This patch handles the case where both fragments are part of the first atom
in a section and there is no corresponding symbol to that atom.

This fixes pr21328.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221304 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-04 22:10:33 +00:00
..
AArch64 [AArch64] Add support for the .inst directive. 2014-10-22 20:35:57 +00:00
ARM Add missing tests for build attribute encodings in object files. 2014-11-04 09:07:40 +00:00
AsmParser
COFF
Disassembler [Hexagon] Reverting 220584 to address ASAN errors. 2014-11-04 00:14:36 +00:00
ELF
MachO Don't produce relocations for a difference in a section with no symbols. 2014-11-04 22:10:33 +00:00
Markup
Mips [mips] Add names and tests for the hardware registers 2014-11-04 21:30:44 +00:00
PowerPC
Sparc
SystemZ
X86 Don't produce relocations for a difference in a section with no symbols. 2014-11-04 22:10:33 +00:00