From feaa9c4bda19bd96f0ab0ac0ed25baca402ad2ee Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 25 Apr 1994 19:28:58 +0000 Subject: [PATCH] * ldlang.c (lang_size_sections): When no address is given for a section, align it according to its requirements. --- ld/ChangeLog | 5 +++++ ld/ldlang.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index 1a850b8..b0dc85b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + + * ldlang.c (lang_size_sections): When no address is given for a + section, align it according to its requirements. + Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * Makefile.in (clean, distclean): Remove configdoc.texi. 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 { -- 2.7.4