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

Avoid crash on `blx' to local symbol (ARM)


I'm checking this in, approved by Nick Clifton:

Index: bfd/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
	for local symbols whose names are unknown.

Index: bfd/elf32-arm.h
===================================================================
RCS file: /cvs/src/src/bfd/elf32-arm.h,v
retrieving revision 1.30
diff -u -r1.30 elf32-arm.h
--- bfd/elf32-arm.h	2000/05/23 14:05:50	1.30
+++ bfd/elf32-arm.h	2000/06/24 20:05:27
@@ -1188,7 +1188,7 @@
 		_bfd_error_handler (_("\
 %s: Warning: Arm BLX instruction targets Arm function '%s'."),
 				    bfd_get_filename (input_bfd),
-				    h->root.root.string);
+				    h ? h->root.root.string : "(local)");
 	    }
 	  else
 #endif
@@ -1377,7 +1377,7 @@
 	      _bfd_error_handler (_("\
 %s: Warning: Thumb BLX instruction targets thumb function '%s'."),
 				  bfd_get_filename (input_bfd),
-				  h->root.root.string);
+				  h ? h->root.root.string : "(local)");
 	  }
 	else
 #endif


-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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