summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Wall <twall@alum.mit.edu>2000-02-04 19:49:21 +0000
committerTimothy Wall <twall@alum.mit.edu>2000-02-04 19:49:21 +0000
commita8cd5d603bc8640a6493337461eed72f1666b924 (patch)
tree3fe96007a1fc59bd9ff0b099a4441f70a5a8dc9c
parent6f2233826ea8b64d1bd5ead9448a67fe3df40cd1 (diff)
downloadbinutils-redhat-a8cd5d603bc8640a6493337461eed72f1666b924.tar.gz
Fix typo in ALIGN_N usage.
-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 33ca5c1185..8ceaf8bd0b 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 6896b20401..10e41c247f 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);