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]

[obv] Initialize plt_eh_frame


Hi,

during some Linux kernel linkage test GNU ld SIGSEGVs
on x86_64-fedora15-linux-gnu:

a4bfcbc92df1d28f6c54193ab7ac98796b587ef7 is the first bad commit
commit a4bfcbc92df1d28f6c54193ab7ac98796b587ef7
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Mon Jun 20 13:18:44 2011 +0000

    	PR ld/12570

==27516== Use of uninitialised value of size 8
==27516==    at 0x46ABC4: elf_x86_64_finish_dynamic_sections (elf64-x86-64.c:4608)
==27516==    by 0x4A111B: bfd_elf_final_link (elflink.c:11157)
==27516==    by 0x41E35D: ldwrite (ldwrite.c:581)
==27516==    by 0x41B1E0: main (ldmain.c:471)

Checked in as obvious.


Thanks,
Jan


http://sourceware.org/ml/binutils-cvs/2011-06/msg00168.html

--- src/bfd/ChangeLog	2011/06/24 17:38:15	1.5402
+++ src/bfd/ChangeLog	2011/06/25 00:43:15	1.5403
@@ -1,3 +1,9 @@
+2011-06-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* elf64-x86-64.c (elf_x86_64_link_hash_table_create): Initialize
+	PLT_EH_FRAME.
+	* elf32-i386.c (elf_i386_link_hash_table): Likewise.
+
 2011-06-24  Richard Henderson  <rth@redhat.com>
 
 	PR ld/12928
--- src/bfd/elf32-i386.c	2011/06/20 13:18:47	1.255
+++ src/bfd/elf32-i386.c	2011/06/25 00:43:15	1.256
@@ -861,6 +861,7 @@
 
   ret->sdynbss = NULL;
   ret->srelbss = NULL;
+  ret->plt_eh_frame = NULL;
   ret->tls_ldm_got.refcount = 0;
   ret->next_tls_desc_index = 0;
   ret->sgotplt_jump_table_size = 0;
--- src/bfd/elf64-x86-64.c	2011/06/20 13:18:47	1.233
+++ src/bfd/elf64-x86-64.c	2011/06/25 00:43:15	1.234
@@ -810,6 +810,7 @@
 
   ret->sdynbss = NULL;
   ret->srelbss = NULL;
+  ret->plt_eh_frame = NULL;
   ret->sym_cache.abfd = NULL;
   ret->tlsdesc_plt = 0;
   ret->tlsdesc_got = 0;


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