From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <80c1d9d69b90cfab4ec188da56e82cf1.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199703080043.SAA23199@stommel.tamu.edu> Date: Fri, 7 Mar 1997 18:43:04 -0600 (CST) From: Richard Henderson Subject: an ld bug fix Those that have been building X and running into odd problems with symbols not being resolved correctly at runtime, as well as strange problems with libXt programs, will want to try the following patch. Note that to solve the symbol resolution problems, you'll have to rebuild glibc as well, as the victim of this bug in that case is ld.so. r~ Fri Mar 7 18:48:18 1997 Richard Henderson * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't create .plt entry if we've taken the function's address. (elf64_alpha_merge_gots): Merge collected flags info as well. --- gas/bfd/elf64-alpha.c.orig Mon Jan 27 06:49:03 1997 +++ gas/bfd/elf64-alpha.c Fri Mar 7 18:46:13 1997 @@ -1777,7 +1777,8 @@ elf64_alpha_adjust_dynamic_symbol (info, if (h->root.type != bfd_link_hash_undefweak && alpha_elf_dynamic_symbol_p (h, info) - && (h->type == STT_FUNC + && ((h->type == STT_FUNC + && !(ah->flags & ALPHA_ELF_LINK_HASH_LU_ADDR)) || (h->type == STT_NOTYPE && ah->flags == ALPHA_ELF_LINK_HASH_LU_FUNC)) /* Don't prevent otherwise valid programs from linking by attempting @@ -1938,6 +1939,7 @@ elf64_alpha_merge_gots (a, b) for (ae = *start; ae ; ae = ae->next) if (ae->gotobj == a && ae->addend == be->addend) { + ae->flags |= be->flags; *pbe = be->next; goto global_found; } -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com