On ELF, create relocations to the abbreviation and line sections when producing
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 28 Feb 2012 21:13:05 +0000 (21:13 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 28 Feb 2012 21:13:05 +0000 (21:13 +0000)
commit489d67927172941bf59b9f4829ab8910814fea24
treea36101a0f30fac4ccf07c8fd29794a78adad47c3
parent3c2e5f2140ade86ff353b27b37137d493f487558
On ELF, create relocations to the abbreviation and line sections when producing
debug info for assembly files. We were already doing the right thing when
producing debug info for C/C++.

ELF linkers don't know dwarf, so they depend on these relocations to produce
valid dwarf output.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151655 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCDwarf.h
lib/MC/MCAsmStreamer.cpp
lib/MC/MCDwarf.cpp
lib/MC/MCObjectStreamer.cpp
test/MC/ELF/gen-dwarf.s [new file with mode: 0644]