This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [discuss] Re: Visibility=hidden for x86_64 Xen builds -- problems?
- From: Keir Fraser <Keir dot Fraser at cl dot cam dot ac dot uk>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: Jan Beulich <jbeulich at novell dot com>, <gcc at gcc dot gnu dot org>, <binutils at sourceware dot org>, <discuss at x86-64 dot org>
- Date: Fri, 29 Sep 2006 07:31:52 +0100
- Subject: Re: [discuss] Re: Visibility=hidden for x86_64 Xen builds -- problems?
On 29/9/06 1:40 am, "H. J. Lu" <hjl@lucon.org> wrote:
> You are asking for impossible:
If the compiler emitted accesses via the GOT for weak symbols then there
wouldn't be a problem. The compiler doesn't know the final link address
though, so it'd have to be conservative. Perhaps it's not worth it for a
case that noone much cares about.
> R_X86_64_PC32 only supports signed 32bit offset. 0x100000000 is more
> than 32bit. The linker should issue an error, at least a warning. You
> can take your pick and I will fix the linker. If no one objects, I
> will make it an error.
That's fine with us. I fixed Xen to no longer use weak symbols.
-- Keir