This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

elf64-ppc.c typo fix


Fixes a ld --no-keep-memory problem.  Trying to read the relocs from
the output bfd isn't very successful, unless they happen to be cached
with the section data.

	* elf64-ppc.c (ppc64_elf_edit_opd): Correct typo.

Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.74
diff -u -p -r1.74 elf64-ppc.c
--- bfd/elf64-ppc.c	30 Nov 2002 08:39:38 -0000	1.74
+++ bfd/elf64-ppc.c	4 Dec 2002 11:02:55 -0000
@@ -3586,7 +3586,7 @@ ppc64_elf_edit_opd (obfd, info)
       sym_hashes = elf_sym_hashes (ibfd);
 
       /* Read the relocations.  */
-      relstart = _bfd_elf64_link_read_relocs (obfd, sec, (PTR) NULL,
+      relstart = _bfd_elf64_link_read_relocs (ibfd, sec, (PTR) NULL,
 					      (Elf_Internal_Rela *) NULL,
 					      info->keep_memory);
       if (relstart == NULL)

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]