* patch for strip
@ 1997-04-25 23:29 Richard Henderson
1997-04-29 17:57 ` Ian Lance Taylor
0 siblings, 1 reply; 4+ messages in thread
From: Richard Henderson @ 1997-04-25 23:29 UTC (permalink / 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: patch for strip
1997-04-25 23:29 patch for strip Richard Henderson
@ 1997-04-29 17:57 ` Ian Lance Taylor
0 siblings, 0 replies; 4+ messages in thread
From: Ian Lance Taylor @ 1997-04-29 17:57 UTC (permalink / raw)
From: Richard Henderson <richard@twiddle.rth.home>
Date: Fri, 25 Apr 1997 18:29:30 -0500 (CDT)
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.
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)
This patch isn't right. The code in question is copying the list of
program headers from the input file to the output file. This is
intended to make objcopy and strip use the same set of program headers
for both files.
As far as I can see, the code works correctly when csecs is 0. If you
look at the bfd_alloc call, it does not pass in 0 even when csecs is
0. Even if it did, bfd_alloc does not return NULL when passed 0.
I'm not sure what the problem is here, but I think it must be
elsewhere.
Ian
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: patch for strip
[not found] <ian@cygnus.com>
@ 1997-05-05 7:11 ` Zarmfab Software Development
1997-05-05 15:21 ` Ian Lance Taylor
0 siblings, 1 reply; 4+ messages in thread
From: Zarmfab Software Development @ 1997-05-05 7:11 UTC (permalink / raw)
On Apr 29, 1:57pm, Ian Lance Taylor wrote:
> Subject: Re: patch for strip "Memory exhausted" error
> This patch isn't right. The code in question is copying the list of
> program headers from the input file to the output file. This is
> intended to make objcopy and strip use the same set of program headers
> for both files.
>....
>-- End of excerpt from Ian Lance Taylor
Hmm... are there newer patches around anywhere ? Or, is it safe to
ignore the error messages ?
--
Martin Cornelius, ZARMFAB software development, University of Bremen
phone: 49-421-218-4807 FAX: 49-421-218-3889
email: fabsoft@zarm.uni-bremen.de
paper-mail: Hochschulring / Am Fallturm, 28359 BREMEN, Germany
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: patch for strip
1997-05-05 7:11 ` Zarmfab Software Development
@ 1997-05-05 15:21 ` Ian Lance Taylor
0 siblings, 0 replies; 4+ messages in thread
From: Ian Lance Taylor @ 1997-05-05 15:21 UTC (permalink / raw)
From: "Zarmfab Software Development" <fabsoft@fabsoft2.zarm.uni-bremen.de>
Date: Mon, 5 May 1997 09:11:56 +0200
On Apr 29, 1:57pm, Ian Lance Taylor wrote:
> Subject: Re: patch for strip "Memory exhausted" error
> This patch isn't right. The code in question is copying the list of
> program headers from the input file to the output file. This is
> intended to make objcopy and strip use the same set of program headers
> for both files.
>....
>-- End of excerpt from Ian Lance Taylor
Hmm... are there newer patches around anywhere ? Or, is it safe to
ignore the error messages ?
The binutils 2.8 release has a better patch.
Ian
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-05-05 15:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-25 23:29 patch for strip Richard Henderson
1997-04-29 17:57 ` Ian Lance Taylor
[not found] <ian@cygnus.com>
1997-05-05 7:11 ` Zarmfab Software Development
1997-05-05 15:21 ` Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox