From 7c2b59d0e8cd59974289c1a167e93810e9137021 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 15 Nov 2001 05:18:22 +0000 Subject: [PATCH] gas/ChangeLog * dwarf2dbg.c (get_frag_fix): Align last frag size. --- gas/ChangeLog | 2 ++ gas/dwarf2dbg.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index ea2e1d2bf73..28afc0ba086 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,7 @@ 2001-11-15 Alan Modra + * dwarf2dbg.c (get_frag_fix): Align last frag size. + * config/tc-ppc.c (ppc_insert_operand): Pass (ppc_cpu | ppc_size) to operand->insert. (md_assemble): Likewise. diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index 55a5205fac0..9807e5eed8e 100644 --- a/gas/dwarf2dbg.c +++ b/gas/dwarf2dbg.c @@ -524,8 +524,9 @@ get_frag_fix (frag) for (fr = frchain_root; fr; fr = fr->frch_next) if (fr->frch_last == frag) { - return ((char *) obstack_next_free (&fr->frch_obstack) - - frag->fr_literal); + long align_mask = -1 << get_recorded_alignment (fr->frch_seg); + return (((char *) obstack_next_free (&fr->frch_obstack) + - frag->fr_literal) + ~align_mask) & align_mask; } abort (); -- 2.30.2