From: guenther Date: Sun, 7 Aug 2016 19:59:07 +0000 (+0000) Subject: If an output section is skipped because of a constraint, then skip it X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=80d8099e91b15068a54945a7c2ba251802ca9154;p=openbsd If an output section is skipped because of a constraint, then skip it when generating the link map output (-M) too ok kettenis@ --- diff --git a/gnu/usr.bin/binutils-2.17/ld/ldlang.c b/gnu/usr.bin/binutils-2.17/ld/ldlang.c index a1a9682d1ab..db04be2f77e 100644 --- a/gnu/usr.bin/binutils-2.17/ld/ldlang.c +++ b/gnu/usr.bin/binutils-2.17/ld/ldlang.c @@ -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);