From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 465 invoked from network); 10 Aug 1998 17:52:07 -0000 Received: from dot.cygnus.com (205.180.230.224) by mail2.redhat.com with SMTP; 10 Aug 1998 17:52:07 -0000 Received: (from rth@localhost) by dot.cygnus.com (8.8.5/8.8.5) id KAA05927; Mon, 10 Aug 1998 10:52:08 -0700 Message-ID: <19980810105207.B5898@dot.cygnus.com> Date: Mon, 10 Aug 1998 10:52:07 -0700 From: Richard Henderson To: axp-list@redhat.com Subject: Re: BUG: probs with resolving functions in shared library Reply-To: Richard Henderson References: <199808051616.MAA23543@tuxedo> <19980808152939.A29135@dot.cygnus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Eric Ding on Mon, Aug 10, 1998 at 11:54:32AM -0400 On Mon, Aug 10, 1998 at 11:54:32AM -0400, Eric Ding wrote: > Is this patch broken? It appears that h->root.plt.offset ought to instead > by h->root.plt_offset. I'm patching against binutils-2.9.1.0.4. Ah yes. The problem being that the patch was not generated against binutils 2.9.1, but rather current sources. There is another problem as well that affects static linking. Use the following definition instead of the one in the patch. #define alpha_elf_dynamic_symbol_p(h, info) \ ((((info)->shared && !(info)->symbolic) \ || (((h)->elf_link_hash_flags \ & (ELF_LINK_HASH_DEF_DYNAMIC | ELF_LINK_HASH_REF_REGULAR)) \ == (ELF_LINK_HASH_DEF_DYNAMIC | ELF_LINK_HASH_REF_REGULAR)) \ || (h)->root.type == bfd_link_hash_undefweak \ || (h)->root.type == bfd_link_hash_defweak) \ && (h)->dynindx != -1) r~