This is the mail archive of the binutils@sources.redhat.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]
Other format: [Raw text]

Change linker script asserts to not immediately exit ld


I found this one very useful when debugging my orphan section changes.
For instance, it lets -M output a map.

	* ldexp.c (exp_fold_tree): Don't immediately exit ld on a
	failing link script assert.

Index: ld/ldexp.c
===================================================================
RCS file: /cvs/src/src/ld/ldexp.c,v
retrieving revision 1.36
diff -u -p -r1.36 ldexp.c
--- ld/ldexp.c	4 Oct 2004 13:41:15 -0000	1.36
+++ ld/ldexp.c	15 Oct 2004 04:19:01 -0000
@@ -669,7 +669,7 @@ exp_fold_tree (etree_type *tree,
       if (result.valid_p)
 	{
 	  if (! result.value)
-	    einfo ("%F%P: %s\n", tree->assert_s.message);
+	    einfo ("%X%P: %s\n", tree->assert_s.message);
 	  return result;
 	}
       break;

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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