This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] S/390: Small fix for the recent elf_s390_check_relocs changes
- From: Andreas Krebbel <krebbel1 at de dot ibm dot com>
- To: binutils at sourceware dot org
- Cc: nickc at redhat dot com
- Date: Wed, 3 Dec 2008 22:30:19 +0100
- Subject: [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);