bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/12380] Assertion in linker script failed twice


From: hjl.tools at gmail dot com
Subject: [Bug ld/12380] Assertion in linker script failed twice
Date: Sun, 9 Jan 2011 17:04:55 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12380

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl.tools at gmail dot com

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-09 17:04:44 
UTC ---
This works for me:

---
diff --git a/ld/ldexp.c b/ld/ldexp.c
index 3261884..812720c 100644
--- a/ld/ldexp.c
+++ b/ld/ldexp.c
@@ -723,8 +723,13 @@ exp_fold_tree_1 (etree_type *tree)

     case etree_assert:
       exp_fold_tree_1 (tree->assert_s.child);
-      if (expld.phase == lang_final_phase_enum && !expld.result.value)
-    einfo ("%X%P: %s\n", tree->assert_s.message);
+      if (expld.phase == lang_final_phase_enum
+      && !expld.result.value
+      && tree->assert_s.message)
+    {
+      einfo ("%X%P: %s\n", tree->assert_s.message);
+      tree->assert_s.message = NULL;
+    }
       break;

     case etree_unary:
---

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]