aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
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
commit9e41f973176c33cc938e512cacdb1b2ca9afe7f6 (patch)
tree223e2de0c0b5959c1bf6c63254c363a9795bb7cf /ld/ldlang.c
parent2ac8ce5fe0d5d19ad0543e4eeb40272541f386df (diff)
downloadfsf-binutils-gdb-9e41f973176c33cc938e512cacdb1b2ca9afe7f6.zip
fsf-binutils-gdb-9e41f973176c33cc938e512cacdb1b2ca9afe7f6.tar.gz
fsf-binutils-gdb-9e41f973176c33cc938e512cacdb1b2ca9afe7f6.tar.bz2
* ldlang.c (wild_doit): Copy SEC_SHORT to output section.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 8e7ae9d..0c0cf3d 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;