ldelfgen.c: Add missing newlines when calling einfo

Message ID 20220106225449.2814325-1-hjl.tools@gmail.com
State New
Headers show
Series
  • ldelfgen.c: Add missing newlines when calling einfo
Related show

Commit Message

H.J. Lu via Binutils Jan. 6, 2022, 10:54 p.m.
* ldelfgen.c (ldelf_map_segments): Add the missing newline to
	einfo.
---
 ld/ldelfgen.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
2.33.1

Patch

diff --git a/ld/ldelfgen.c b/ld/ldelfgen.c
index 905025fe442..5c033bbfbe0 100644
--- a/ld/ldelfgen.c
+++ b/ld/ldelfgen.c
@@ -282,7 +282,7 @@  ldelf_map_segments (bool need_layout)
 		      && bfd_link_relocatable (&link_info))
 		    {
 		      einfo (_("%F%P: "
-			       "%pA has both ordered and unordered sections"),
+			       "%pA has both ordered and unordered sections\n"),
 			     os->bfd_section);
 		      return;
 		    }
@@ -325,7 +325,7 @@  ldelf_map_segments (bool need_layout)
   while (need_layout && --tries);
 
   if (tries == 0)
-    einfo (_("%F%P: looping in map_segments"));
+    einfo (_("%F%P: looping in map_segments\n"));
 
   if (bfd_get_flavour (link_info.output_bfd) == bfd_target_elf_flavour
       && lang_phdr_list == NULL)
@@ -337,7 +337,7 @@  ldelf_map_segments (bool need_layout)
       if (bed->elf_backend_strip_zero_sized_dynamic_sections
 	  && !bed->elf_backend_strip_zero_sized_dynamic_sections
 		(&link_info))
-	  einfo (_("%F%P: failed to strip zero-sized dynamic sections"));
+	  einfo (_("%F%P: failed to strip zero-sized dynamic sections\n"));
     }
 }