Change linker script asserts to not immediately exit ld
Alan Modra
amodra@bigpond.net.au
Fri Oct 15 05:59:00 GMT 2004
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
More information about the Binutils
mailing list