If an output section is skipped because of a constraint, then skip it
authorguenther <guenther@openbsd.org>
Sun, 7 Aug 2016 19:59:07 +0000 (19:59 +0000)
committerguenther <guenther@openbsd.org>
Sun, 7 Aug 2016 19:59:07 +0000 (19:59 +0000)
when generating the link map output (-M) too

ok kettenis@

gnu/usr.bin/binutils-2.17/ld/ldlang.c

index a1a9682..db04be2 100644 (file)
@@ -3292,6 +3292,9 @@ print_output_section_statement
   asection *section = output_section_statement->bfd_section;
   int len;
 
+  if (output_section_statement->constraint == -1)
+    return;
+
   if (output_section_statement != abs_output_section)
     {
       minfo ("\n%s", output_section_statement->name);