Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/toolchain/ld/emultempl xstrdup the return value of ...
details: https://anonhg.NetBSD.org/src/rev/c8ffc4986e0f
branches: trunk
changeset: 538839:c8ffc4986e0f
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Oct 31 23:21:17 2002 +0000
description:
xstrdup the return value of basename() before recording it in the bfd
with bfd_elf_set_dt_needed_soname(). Fixes the "NEEDED crtend.o"
problem reported on tech-toolchain/current-users.
Problem spotted by Ryo HAYASAKA <ryoh%jaist.ac.jp@localhost>.
diffstat:
gnu/dist/toolchain/ld/emultempl/elf32.em | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 7be959b80912 -r c8ffc4986e0f gnu/dist/toolchain/ld/emultempl/elf32.em
--- a/gnu/dist/toolchain/ld/emultempl/elf32.em Thu Oct 31 23:01:27 2002 +0000
+++ b/gnu/dist/toolchain/ld/emultempl/elf32.em Thu Oct 31 23:21:17 2002 +0000
@@ -350,7 +350,7 @@
/* 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. */
- bfd_elf_set_dt_needed_soname (abfd, soname);
+ bfd_elf_set_dt_needed_soname (abfd, xstrdup (soname));
/* Add this file into the symbol table. */
if (! bfd_link_add_symbols (abfd, &link_info))
Home |
Main Index |
Thread Index |
Old Index