aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-04-25 19:28:58 +0000
committerIan Lance Taylor <ian@airs.com>1994-04-25 19:28:58 +0000
commitfeaa9c4bda19bd96f0ab0ac0ed25baca402ad2ee (patch)
treea5894fe24db2c2fa3eda7bf9b7fed029712dae48 /ld/ldlang.c
parentf38cd6ec95041192cad3a36e1eda21a255845c70 (diff)
downloadgdb-feaa9c4bda19bd96f0ab0ac0ed25baca402ad2ee.zip
gdb-feaa9c4bda19bd96f0ab0ac0ed25baca402ad2ee.tar.gz
gdb-feaa9c4bda19bd96f0ab0ac0ed25baca402ad2ee.tar.bz2
* ldlang.c (lang_size_sections): When no address is given for a
section, align it according to its requirements.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index a7ae973..a1a5de9 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -1672,6 +1672,8 @@ lang_size_sections (s, output_section_statement, prev, fill, dot, relax)
os->region = lang_memory_region_lookup ("*default*");
}
dot = os->region->current;
+ if (os->section_alignment == -1)
+ dot = align_power (dot, os->bfd_section->alignment_power);
}
else
{