summaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-07-14 16:45:13 +0000
committerRichard Henderson <rth@redhat.com>1999-07-14 16:45:13 +0000
commit79d3431e71c3b37ec6f28252ebca84215d8fedc2 (patch)
tree39733db2ec4b4cf67c576088e7b638abffa2d34e /ld
parent9fdf416b1659827e24b2f3d512ca78d59e83ae8d (diff)
downloadbinutils-redhat-79d3431e71c3b37ec6f28252ebca84215d8fedc2.tar.gz
* ldlang.c (wild_doit): Copy SEC_SHORT to output section.
Diffstat (limited to 'ld')
-rw-r--r--ld/ldlang.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 8e7ae9d4d0..0c0cf3d5a5 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -1105,6 +1105,10 @@ wild_doit (ptr, section, output, file)
break;
}
+ /* Copy over SEC_SHORT. */
+ if (section->flags & SEC_SHORT)
+ section->output_section->flags |= SEC_SHORT;
+
if (section->alignment_power > output->bfd_section->alignment_power)
output->bfd_section->alignment_power = section->alignment_power;