diff options
author | Alan Modra <amodra@gmail.com> | 2001-11-15 05:18:22 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2001-11-15 05:18:22 +0000 |
commit | 7c2b59d0e8cd59974289c1a167e93810e9137021 (patch) | |
tree | d110c79ccdf7a46cc0af3f95fcf929c6420f5d75 /gas/dwarf2dbg.c | |
parent | d01949b65b015c7b27aca340c2beb70ce590ac36 (diff) | |
download | gdb-7c2b59d0e8cd59974289c1a167e93810e9137021.zip gdb-7c2b59d0e8cd59974289c1a167e93810e9137021.tar.gz gdb-7c2b59d0e8cd59974289c1a167e93810e9137021.tar.bz2 |
gas/ChangeLog
* dwarf2dbg.c (get_frag_fix): Align last frag size.
Diffstat (limited to 'gas/dwarf2dbg.c')
-rw-r--r-- | gas/dwarf2dbg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index 55a5205..9807e5e 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 (); |