[llvm-commits] Debug Relocation Patch

Renato Golin renato.golin at arm.com
Mon Mar 14 10:26:22 PDT 2011


Patch to a fix dwarf relocation problem on ARM. One-line fix plus the
test where it used to break. Check-all passes cleanly.

Rationale:
When the location of a symbol vary during the execution of the
program, GCC emits the Dwarf location as a reference to a temporary
symbol inside the .debug_loc section, so GAS can later interpret this
as an offset and emit the proper relocation (to .debug_loc). LLVM was
emitting the offset directly and not leaving enough information to GAS
for relocation information. This patch makes LLVM emit the reference
to the symbol directly, as GCC does.

Ok to commit?

cheers,
--renato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dwarf-relocation.patch
Type: text/x-patch
Size: 6583 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110314/282d14f4/attachment.bin>


More information about the llvm-commits mailing list