diff options
| author | thorpej <thorpej@NetBSD.org> | 2002-10-31 23:21:17 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2002-10-31 23:21:17 +0000 |
| commit | f8b18efd0ce7dfd4ae6a6b696fdb044a6cb23cc3 (patch) | |
| tree | d107f8ab8772ff0ec7c8b83f0daee253263b7a91 /gnu/dist/toolchain | |
| parent | 8b5e86873c9a5f3cc52a68d8eb09179d7214483d (diff) | |
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>.
Diffstat (limited to 'gnu/dist/toolchain')
| -rw-r--r-- | gnu/dist/toolchain/ld/emultempl/elf32.em | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/dist/toolchain/ld/emultempl/elf32.em b/gnu/dist/toolchain/ld/emultempl/elf32.em index c0d52b10205..7d4939ec988 100644 --- a/gnu/dist/toolchain/ld/emultempl/elf32.em +++ b/gnu/dist/toolchain/ld/emultempl/elf32.em @@ -350,7 +350,7 @@ cat >>e${EMULATION_NAME}.c <<EOF /* 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)) |
