summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-08-07 19:59:08 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-08-07 19:59:08 +0000
commitbd5af8c5d98e73d4787fca802b9606de216ee687 (patch)
tree71e4aa696f9837469bcadb16c66e10a5e81291ff
parented8b45e5489aea48564051315daa2b79862a477d (diff)
If an output section is skipped because of a constraint, then skip it
when generating the link map output (-M) too ok kettenis@
-rw-r--r--gnu/usr.bin/binutils-2.17/ld/ldlang.c3
1 files changed, 3 insertions, 0 deletions
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);