From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28973 invoked by alias); 19 Jul 2002 10:47:04 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 28953 invoked from network); 19 Jul 2002 10:47:02 -0000 Received: from unknown (HELO mta05ps.bigpond.com) (144.135.25.137) by sources.redhat.com with SMTP; 19 Jul 2002 10:47:02 -0000 Received: from bubble.local ([144.135.25.69]) by mta05ps.bigpond.com (Netscape Messaging Server 4.15 mta05ps May 23 2002 23:53:28) with SMTP id GZHSMC00.0UL for ; Fri, 19 Jul 2002 20:47:00 +1000 Received: from CPE-144-136-176-14.sa.bigpond.net.au ([144.136.176.14]) by PSMAM01.mailsvc.email.bigpond.com(MailRouter V3.0n 71/9576436); 19 Jul 2002 20:47:00 Received: (qmail 13686 invoked by uid 179); 19 Jul 2002 10:46:59 -0000 Date: Fri, 19 Jul 2002 07:01:00 -0000 From: Alan Modra To: Jason R Thorpe , binutils@sources.redhat.com Subject: Re: [PATCH/RFA] elf64-alpha: Don't put DT_PLTGOT dynamic if no PLT Message-ID: <20020719104659.GL30362@bubble.sa.bigpond.net.au> Mail-Followup-To: Jason R Thorpe , binutils@sources.redhat.com References: <20020718135711.J13737@dr-evil.shagadelic.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020718135711.J13737@dr-evil.shagadelic.org> User-Agent: Mutt/1.3.25i X-SW-Source: 2002-07/txt/msg00488.txt.bz2 On Thu, Jul 18, 2002 at 01:57:11PM -0700, Jason R Thorpe wrote: > The problem occurs when a shared object contains no external references, > and thus has no PLT. elf64_alpha_size_dynamic_sections() inserts a > DT_PLTGOT entry anyway, which confuses the dynamic linker, resulting in > a crash. So, it's really a NetBSD dynamic linker bug? > * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only insert > DT_PLTGOT into the dynamic section if there is a PLT. I'm fairly certain this won't cause any problem with glibc based systems, so the patch is OK everywhere. Give Richard Henderson a day or two to nak it before committing though. Hey Richard, why aren't you listed as binutils alpha maintainer? -- Alan Modra IBM OzLabs - Linux Technology Centre