[llvm-commits] Debug Relocation Patch

Rafael Avila de Espindola rafael.espindola at gmail.com
Mon Mar 14 11:19:26 PDT 2011


On 11-03-14 01:26 PM, Renato Golin wrote:
> 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?

This might be a difference in how ELF and Mach-O handle debug info. Can 
you try this on a Darwin system too?

> cheers,
> --renato


Thanks,
Rafael



More information about the llvm-commits mailing list