[llvm-commits] Debug Relocation Patch

Devang Patel dpatel at apple.com
Wed Mar 16 10:46:51 PDT 2011


Renato,

On Mar 15, 2011, at 10:13 AM, Renato Golin wrote:

> On 14/03/11 19:45, Rafael Avila de Espindola wrote:
>> 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?
> 
> Hi all,
> 
> I've just compiled LLVM on an old Mac box (9.1.0, 2007) and compiled the
> same example in the test case and everything (symbols, stepping,
> debugging experience) was ok. All tests, including my new one, pass.
> 
> I don't know how to dump mach-o objects nor how to check for the
> relocation sections, though. Somebody with more experience in Mach-o
> should take a look.

We had a bug in older assembler, which we still support, where it could not handle constructs like,

        .long   (Ltmp5-Ltmp4)-4

This required use of .set

However in this case we emitting reference to label directly without doing any arithmetic so it should be OK. If all testings looks OK, please go ahead and commit. If someone complains from our side, I'll let you know!

-
Devang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110316/4774bde9/attachment.html>


More information about the llvm-commits mailing list