This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project. [Get raw message]


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

PATCH: Fix the MIPS/Sparc64 ELF linker


Hi Jakub,

Your change breaks the MIPS/Sparc64 ELF linker. Could you please take
a look at this patch?

Thanks.


H.J.
-----
2001-11-09  H.J. Lu <hjl@gnu.org>

	* elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Call
	_bfd_elf_strtab_size instead of _bfd_stringtab_size.

	* elf64-sparc.c (sparc64_elf_size_dynamic_sections): Change
	dynstr type to `struct elf_strtab_hash *'.

Index: elf32-mips.c
===================================================================
RCS file: /work/cvs/gnu/binutils/bfd/elf32-mips.c,v
retrieving revision 1.51
diff -u -p -r1.51 elf32-mips.c
--- elf32-mips.c	2001/11/10 01:14:13	1.51
+++ elf32-mips.c	2001/11/10 01:57:05
@@ -8929,7 +8929,7 @@ _bfd_mips_elf_finish_dynamic_sections (o
 	    case DT_STRSZ:
 	      /* Rewrite DT_STRSZ.  */
 	      dyn.d_un.d_val =
-		_bfd_stringtab_size (elf_hash_table (info)->dynstr);
+		_bfd_elf_strtab_size (elf_hash_table (info)->dynstr);
 	      break;
 
 	    case DT_PLTGOT:
Index: elf64-sparc.c
===================================================================
RCS file: /work/cvs/gnu/binutils/bfd/elf64-sparc.c,v
retrieving revision 1.28
diff -u -p -r1.28 elf64-sparc.c
--- elf64-sparc.c	2001/11/10 01:14:17	1.28
+++ elf64-sparc.c	2001/11/10 01:57:06
@@ -1786,7 +1786,7 @@ sparc64_elf_size_dynamic_sections (outpu
 
       int reg;
       struct sparc64_elf_app_reg * app_regs;
-      struct bfd_strtab_hash *dynstr;
+      struct elf_strtab_hash *dynstr;
       struct elf_link_hash_table *eht = elf_hash_table (info);
 
       if (!info->shared)


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