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

Cary Coutant ccoutant@google.com
Fri Apr 20 01:12:00 GMT 2012

> It was Cary's suggestion that I change define_in_output_data this way
> rather than adding a separate method.  But one thing I'm not entirely
> sure about is that I think this means that _GLOBAL_OFFSET_TABLE_ and
> __rel{,a}_iplt_{start,end} cannot be referenced by name any more.  It
> might be the case that things expect to use _GLOBAL_OFFSET_TABLE_ by
> name, and it's certainly true that __rel{,a}_iplt_{start,end} are used
> by name (that's why they exist).  Cary's proposal to consolidate this
> behavior in do_define_in_output_segment as well would make it affect
> _TLS_MODULE_BASE_ too.  I don't know how that symbol is used.

I'd argue that if those symbols need to be referenced by name, they
should be defined as STB_GLOBAL instead of STB_LOCAL. I could be
wrong, though. If I am, sorry, I guess you'll need to revert to the
separate method you had before.


More information about the Binutils mailing list