aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/ldlang.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 33ca5c1..8ceaf8b 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2000-02-04 Timothy Wall <twall@redhat.com>
+
+ * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
+
2000-02-03 Timothy Wall <twall@redhat.com>
* ld/ldexp.c (fold_name): Make SIZEOF operator return byte count, not
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 6896b20..10e41c2 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -2824,8 +2824,8 @@ lang_size_sections (s, output_section_statement, prev, fill, dot, relax)
/* put the section within the requested block size, or align at
the block boundary */
- after = ALIGN_N (os->bfd_section->vma,
- os->bfd_section->_raw_size / opb,
+ after = ALIGN_N (os->bfd_section->vma
+ + os->bfd_section->_raw_size / opb,
/* The coercion here is important, see ld.h. */
(bfd_vma) os->block_value);