diff options
author | Timothy Wall <twall@alum.mit.edu> | 2000-02-03 18:20:23 +0000 |
---|---|---|
committer | Timothy Wall <twall@alum.mit.edu> | 2000-02-03 18:20:23 +0000 |
commit | bea9907b2a19c3ed94595a88003b8900938b0ad9 (patch) | |
tree | b2652f586bd91490ee6f658b40744dee34f5d96c /gas/frags.c | |
parent | 940b2b788ccdda311ff16e18d79e68d0c7928842 (diff) | |
download | gdb-bea9907b2a19c3ed94595a88003b8900938b0ad9.zip gdb-bea9907b2a19c3ed94595a88003b8900938b0ad9.tar.gz gdb-bea9907b2a19c3ed94595a88003b8900938b0ad9.tar.bz2 |
octets vs bytes changes for GAS
Diffstat (limited to 'gas/frags.c')
-rw-r--r-- | gas/frags.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/gas/frags.c b/gas/frags.c index 240b2ee..882cb12 100644 --- a/gas/frags.c +++ b/gas/frags.c @@ -114,7 +114,7 @@ frag_new (old_frags_var_max_size) assert (frchain_now->frch_last == frag_now); /* Fix up old frag's fr_fix. */ - frag_now->fr_fix = frag_now_fix () - old_frags_var_max_size; + frag_now->fr_fix = frag_now_fix_octets () - old_frags_var_max_size; /* Make sure its type is valid. */ assert (frag_now->fr_type != 0); @@ -336,12 +336,19 @@ frag_align_pattern (alignment, fill_pattern, n_fill, max) } addressT -frag_now_fix () +frag_now_fix_octets () { if (now_seg == absolute_section) return abs_section_offset; - return (addressT) ((char*) obstack_next_free (&frchain_now->frch_obstack) - - frag_now->fr_literal); + + return ((char*) obstack_next_free (&frchain_now->frch_obstack) + - frag_now->fr_literal); +} + +addressT +frag_now_fix () +{ + return frag_now_fix_octets() / OCTETS_PER_BYTE; } void |