This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Avoid crash on `blx' to local symbol (ARM)
- To: binutils at sourceware dot cygnus dot com
- Subject: Avoid crash on `blx' to local symbol (ARM)
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 24 Jun 2000 17:06:53 -0300
- Organization: GCC Team, Red Hat
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