From 80d8099e91b15068a54945a7c2ba251802ca9154 Mon Sep 17 00:00:00 2001 From: guenther Date: Sun, 7 Aug 2016 19:59:07 +0000 Subject: [PATCH] If an output section is skipped because of a constraint, then skip it when generating the link map output (-M) too ok kettenis@ --- gnu/usr.bin/binutils-2.17/ld/ldlang.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.20.1