From 381a1ab30c060addb84bcd45ae1fbe1abd8c8f4d Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 28 Nov 2002 14:13:51 +0000 Subject: [PATCH] * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment to entsize. --- gas/ChangeLog | 5 +++++ gas/write.c | 20 +++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index cdf5c9efe0..588c39d7ba 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-11-28 Jakub Jelinek + + * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment + to entsize. + 2002-11-26 DJ Delorie owner, now_seg) & SEC_MERGE) + && now_seg->entsize) + { + unsigned int entsize = now_seg->entsize; + int entalign = 0; + + while ((entsize & 1) == 0) + { + ++entalign; + entsize >>= 1; + } + if (entalign > alignment) + alignment = entalign; + } +#endif + } if (subseg_text_p (now_seg)) frag_align_code (alignment, 0); -- 2.34.1