bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/29803] Relax failed between different output section


From: lifang_xia at linux dot alibaba.com
Subject: [Bug ld/29803] Relax failed between different output section
Date: Fri, 18 Nov 2022 03:39:54 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29803

--- Comment #1 from lifang_xia at linux dot alibaba.com ---
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 03daba6ef7f..a63e73850c3 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -6138,8 +6138,14 @@ lang_size_sections_1
                if (!bfd_relax_section (i->owner, i, &link_info, &again))
                  einfo (_("%F%P: can't relax section: %E\n"));
                if (again)
-                 *relax = true;
+                 {
+                   /* Update vma and size after finishing relax for sectino i.
 */
+                   lang_size_sections_1 (prev, output_section_statement,
+                                 fill, dot, false, check_regions);
+                   *relax = true;
+                 }
              }
+
            dot = size_input_section (prev, output_section_statement,
                                      fill, &removed, dot);
          }

-- 
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]