diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-11-04 22:10:33 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-11-04 22:10:33 +0000 |
commit | bfd0f01dd75f299bb521a2a31f270b3687be2cee (patch) | |
tree | 4bd1dfdcee854ec887ea49ed5f03de3397bd5f28 /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | |
parent | 4f5cbc1a1ec5adb2d2f91138092b83dcd6e654a2 (diff) | |
download | bcm5719-llvm-bfd0f01dd75f299bb521a2a31f270b3687be2cee.tar.gz bcm5719-llvm-bfd0f01dd75f299bb521a2a31f270b3687be2cee.zip |
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.
llvm-svn: 221304
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp')
0 files changed, 0 insertions, 0 deletions