public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] basename buffer gets spammed in `ld'
@ 2001-07-09 16:37 David O'Brien
  2001-07-09 16:48 ` DJ Delorie
  2001-07-09 16:49 ` H . J . Lu
  0 siblings, 2 replies; 28+ messages in thread
From: David O'Brien @ 2001-07-09 16:37 UTC (permalink / raw)
  To: GNU Binutils mailing list

There is a bug in `ld' that causes it to record crtn.o as a shared
library dependency in some cases on FreeBSD.

Permission to apply to head and 2.11 branch?

-- 
-- David  (obrien@FreeBSD.org)


Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/ld/ChangeLog,v
retrieving revision 1.423
diff -u -r1.423 ChangeLog
--- ChangeLog	2001/07/03 23:22:19	1.423
+++ ChangeLog	2001/07/09 23:31:29
@@ -1,3 +1,8 @@
+2001-07-09  David O'Brien  <obrien@FreeBSD.org>
+
+	* emultempl/elf32.em: Do not assuming that contents of the buffer returned
+	from basename function will remain unchanged accross other function calls.
+
 2001-07-03  H.J. Lu  <hjl@gnu.org>
 
 	* scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
Index: emultempl/elf32.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/elf32.em,v
retrieving revision 1.49
diff -u -r1.49 elf32.em
--- elf32.em	2001/06/18 22:20:57	1.49
+++ elf32.em	2001/07/09 23:31:30
@@ -360,6 +360,9 @@
      DT_NEEDED entry for this file.  */
   bfd_elf_set_dt_needed_name (abfd, "");
 
+  /* Previos basename call was clobbered in lang_for_each_input_file.  */
+  soname = basename (abfd->filename);
+
   /* Tell the ELF backend that the output file needs a DT_NEEDED
      entry for this file if it is used to resolve the reference in
      a regular object.  */

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2001-07-14 11:03 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-09 16:37 [PATCH] basename buffer gets spammed in `ld' David O'Brien
2001-07-09 16:48 ` DJ Delorie
2001-07-09 17:09   ` David O'Brien
2001-07-09 17:30     ` DJ Delorie
2001-07-10  0:33       ` Philip Blundell
2001-07-12 11:43         ` David O'Brien
2001-07-12 11:49           ` DJ Delorie
2001-07-12 11:57             ` David O'Brien
2001-07-12 11:59               ` David O'Brien
2001-07-12 12:15                 ` H . J . Lu
2001-07-14  9:39                   ` David O'Brien
2001-07-14  9:47                     ` H . J . Lu
2001-07-14 11:03                       ` David O'Brien
2001-07-12 11:49           ` H . J . Lu
2001-07-10  3:41       ` Nick Clifton
2001-07-10  6:06         ` Philip Blundell
2001-07-10 22:55     ` Andrew Cagney
2001-07-10 23:04       ` David O'Brien
2001-07-09 21:17   ` David O'Brien
2001-07-09 21:34     ` DJ Delorie
2001-07-10  0:34     ` Philip Blundell
2001-07-10  9:10       ` David O'Brien
2001-07-10 10:43         ` Philip Blundell
2001-07-09 16:49 ` H . J . Lu
2001-07-09 17:19   ` DJ Delorie
2001-07-09 17:24     ` H . J . Lu
2001-07-09 17:34       ` DJ Delorie
2001-07-09 17:39         ` H . J . Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).