[llvm-commits] Debug Relocation Patch

Rafael Avila de Espindola rafael.espindola at gmail.com
Mon Mar 14 12:45:40 PDT 2011


> Nope, sorry. I don't have it available for me to test. :(
>
> I was hoping there was a test for that that but I couldn't find it,
> so I just created one.
>
> As far as I understand, Mach-O doesn't have relocations (right?), so
> the current style is actually correct.

It has relocations in general, but as far as I know it also requires the 
linker to know dwarf, so it can use that to avoid some.

> Is it possible for the Mach-O back-end to understand that a label
> inside another section is actually an offset? Or maybe we need to
> delegate that to each specific back-end...

We might need a virtual method or similar. Devang, for testing on linux 
I normally use a current version of the gdb testsuite. I assume that for 
darwin it is better to use an older one. Which testsuite do you normally 
use?

> cheers, --renato
>

Cheers,
Rafael



More information about the llvm-commits mailing list