[nonworking patch] gold/arm: define $a/$d markers in .plt

Roland McGrath mcgrathr@google.com
Wed Apr 18 19:11:00 GMT 2012


On Wed, Apr 18, 2012 at 11:19 AM, Cary Coutant <ccoutant@google.com> wrote:
> It  looks to me like the "if (0)" is preventing those new locals from
> being written to the output file:
[...]
> Did you forget to remove a hack?

D'oh!  Clearly I did.  But removing that doesn't change the results.
I think I just added that while debugging to verify that this code
was not having any effect.

What's happening is that the symbols it writes are later being overwritten
with globals.  This is because first_global_index hasn't counted the
generated_locals.  I tried a couple of different tacks to increment it
but those ran afoul of other assertions.  I really don't understand the
bookkeeping associated with first_global_index_ and output_count_.


Thanks,
Roland



More information about the Binutils mailing list