This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] gold/arm: define $a/$d markers in .plt
- From: Cary Coutant <ccoutant at google dot com>
- To: Roland McGrath <mcgrathr at google dot com>
- Cc: iant at google dot com, binutils at sourceware dot org
- Date: Thu, 19 Apr 2012 17:39:01 -0700
- Subject: Re: [PATCH] gold/arm: define $a/$d markers in .plt
- References: <x57jr4vjxpn9.fsf@frobland.mtv.corp.google.com>
> 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.
-cary