From: "H.J." <hjl.to...@gmail.com>
Date: Sun, 24 Feb 2008 21:32:35 -0800 (PST)
Local: Mon, Feb 25 2008 12:32 am
Subject: Re: Should weak hidden undefined symbol be allowed?
On Feb 24, 9:05 pm, "Jim Dehnert" <dehn...@gmail.com> wrote:
> On Sun, Feb 24, 2008 at 2:05 PM, H.J. <hjl.to...@gmail.com> wrote:
For
> > Should weak hidden undefined symbol be allowed? The problem is when
> Why does that matter? That's an absolute zero, not a relative zero.
foo ? foo() : puts( "foo == null, skipped." );
if foo is hidden, compiler assumes it will be defined in the same
leaq foo(%rip), %rax
PC relative address is used here. It will work correctly if foo is
leaq foo(%rip), %rax
into
leaq -PC(%rip), %rax
rax will be 0. But for shared library, linker doesn't know the load
Generate a DSO with DT_TEXTREL isn't very desirable. We want
H.J.
H.J.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||