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]

[RFA] pdp11: fix abort if debug symbols present


The existing bfd/pdp11.c doesn't accept debug symbols.  The attached patch cures that.

Tested by building pdp11-aout-none and using it with gcc -g.

Ok for trunk?

	paul

ChangeLog:

2010-11-29  Paul Koning  <ni1d@arrl.net>

	* pdp11.c (aout_link_add_symbols): Ignore debug symbols.

Index: pdp11.c
===================================================================
RCS file: /cvs/src/src/bfd/pdp11.c,v
retrieving revision 1.45
diff -u -r1.45 pdp11.c
--- pdp11.c	14 Oct 2010 01:31:27 -0000	1.45
+++ pdp11.c	29 Nov 2010 17:08:45 -0000
@@ -2777,7 +2777,9 @@
       switch (type)
 	{
 	default:
-	  abort ();
+	  /* Anything else should be a debugging symbol.  */
+	  BFD_ASSERT ((type & N_STAB) != 0);
+	  continue;
 
 	case N_UNDF:
 	case N_ABS:


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