This is the mail archive of the 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]

Re: pr13131 "fix"

On Tue, Sep 06, 2011 at 05:12:04PM +0930, Alan Modra wrote:
> 	PR ld/13131
> 	* elf64-ppc.c (adjust_toc_syms): Delete redundant code.
> 	(ppc64_elf_edit_toc): Fix style nit.  Report some details
> 	on linker failure due to reference in debug or non-alloc
> 	sections to optimized away toc entry, and don't abort.

Severe lack of testing.

	* bfd/elf64-ppc.c (adjust_toc_syms): Ensure ppc64_elf_howto_table
	is initialized.

Index: bfd/elf64-ppc.c
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.362
diff -u -p -r1.362 elf64-ppc.c
--- bfd/elf64-ppc.c	6 Sep 2011 07:41:24 -0000	1.362
+++ bfd/elf64-ppc.c	7 Sep 2011 13:52:04 -0000
@@ -8382,6 +8382,8 @@ ppc64_elf_edit_toc (struct bfd_link_info
+			  if (!ppc64_elf_howto_table[R_PPC64_ADDR32])
+			    ppc_howto_init ();
 			    (_("%P: %H: %s relocation references "
 			       "optimized away TOC entry\n"),

Alan Modra
Australia Development Lab, IBM

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