This is the mail archive of the binutils@sourceware.org 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]

[PATCH] S/390: Small fix for the recent elf_s390_check_relocs changes


Hi,

the attached patch fixes a minor problem with:
http://sourceware.org/ml/binutils/2008-11/msg00293.html

The elf32-s390.c file seems to be ok.

Ok to apply?

Bye,

-Andreas-


2008-12-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
	
	* elf64-s390.c (elf_s390_check_relocs): Initialize
	htab->elf.dynobj if necessary.


Index: bfd/elf64-s390.c
===================================================================
*** bfd/elf64-s390.c.orig	2008-12-03 21:16:48.000000000 +0100
--- bfd/elf64-s390.c	2008-12-03 22:10:12.000000000 +0100
*************** elf_s390_check_relocs (abfd, info, sec, 
*** 1246,1251 ****
--- 1246,1254 ----
  		 this reloc.  */
  	      if (sreloc == NULL)
  		{
+ 		  if (htab->elf.dynobj == NULL)
+ 		    htab->elf.dynobj = abfd;
+ 
  		  sreloc = _bfd_elf_make_dynamic_reloc_section
  		    (sec, htab->elf.dynobj, 3, abfd, /*rela?*/ TRUE);
  


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