Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <richard@twiddle.rth.home>
Subject: patch for strip
Date: Fri, 25 Apr 1997 18:29:30 -0500 (CDT)	[thread overview]
Message-ID: <199704252329.SAA11727@twiddle.rth.home> (raw)

I'm not sure what changed to expose this, but the first phdr is
the phdr itself, and so naturally doesn't contain any sections.

r~

Fri Apr 25 18:25:36 1997  Richard Henderson  <rth@tamu.edu>

	* elf.c (copy_private_bfd_data): Continue early if the phdr
	doesn't contain any sections.

--- binutils-2.7.0.16/bfd/elf.c.orig	Fri Apr 25 18:00:34 1997
+++ binutils-2.7.0.16/bfd/elf.c	Fri Apr 25 18:12:18 1997
@@ -3144,6 +3144,9 @@ copy_private_bfd_data (ibfd, obfd)
 	    && s->output_section != NULL)
 	  ++csecs;
 
+      if (csecs == 0)
+	continue;
+
       m = ((struct elf_segment_map *)
 	   bfd_alloc (obfd,
 		      (sizeof (struct elf_segment_map)

--
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

             reply	other threads:[~1997-04-25 23:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-25 23:29 Richard Henderson [this message]
1997-04-29 17:57 ` patch for strip Ian Lance Taylor
     [not found] <ian@cygnus.com>
1997-05-05  7:11 ` Zarmfab Software Development
1997-05-05 15:21   ` Ian Lance Taylor
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox