aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-10-15 06:00:15 +0000
committerAlan Modra <amodra@gmail.com>2004-10-15 06:00:15 +0000
commitc468c8bcab967b88ab8b6c563f691471f52e1dc0 (patch)
treeba63756e5ae9e9840735b322e5f2e27f2cdf69ca
parent95c148b400bbaad77aeb0d067ed7c57a8eeb2ddc (diff)
downloadgdb-c468c8bcab967b88ab8b6c563f691471f52e1dc0.zip
gdb-c468c8bcab967b88ab8b6c563f691471f52e1dc0.tar.gz
gdb-c468c8bcab967b88ab8b6c563f691471f52e1dc0.tar.bz2
* ldexp.c (exp_fold_tree): Don't immediately exit ld on a
failing link script assert.
-rw-r--r--ld/ChangeLog3
-rw-r--r--ld/ldexp.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 65db21e..c8541d5 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,8 @@
2004-10-15 Alan Modra <amodra@bigpond.net.au>
+ * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
+ failing link script assert.
+
* ldctor.c (ldctor_add_set_entry): Fix comment typo.
2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
diff --git a/ld/ldexp.c b/ld/ldexp.c
index 4110f57..57968a2 100644
--- a/ld/ldexp.c
+++ b/ld/ldexp.c
@@ -390,7 +390,7 @@ fold_binary (etree_type *tree,
case ALIGN_K:
result.value = align_n (result.value, other.value);
break;
-
+
case DATA_SEGMENT_ALIGN:
if (allocation_done != lang_first_phase_enum
&& current_section == abs_output_section
@@ -492,7 +492,7 @@ fold_name (etree_type *tree,
etree_value_type result;
result.valid_p = FALSE;
-
+
switch (tree->type.node_code)
{
case SIZEOF_HEADERS:
@@ -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;