[committed] Define targ_underscore=yes for sh*-vxworks
Richard Sandiford
richard@codesourcery.com
Sat Aug 11 17:33:00 GMT 2007
Like most SH targets, VxWorks adds a leading '_' to symbol names.
I checked that c++filt wasn't able to demangle names before the
patch below but could after it. Tested on sh-wrs-vxworks and
installed as obvious.
Richard
bfd/
* config.bfd (sh-*-vxworks): Define targ_underscore to "yes".
Index: bfd/config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.228
diff -u -p -r1.228 config.bfd
--- bfd/config.bfd 27 Jul 2007 13:26:44 -0000 1.228
+++ bfd/config.bfd 11 Aug 2007 17:30:50 -0000
@@ -1297,6 +1297,7 @@ case "${targ}" in
# they're necessary for coff-sh.c (which is unconditionally used) to be
# compiled correctly.
targ_selvecs="$targ_selvecs shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
+ targ_underscore=yes
;;
sh-*-*)
targ_defvec=shcoff_vec
More information about the Binutils
mailing list