From: nickc Date: Fri, 13 Oct 2006 11:36:02 +0000 (+0000) Subject: * dwarf2dbg.c (out_debug_info): Use TC_DWARF2_EMIT_OFFSET to emit a disjoint DW_AT... X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=bf59eda1210b274fd1e409750ed3a2bfe0ef6ac3;p=pf3gnuchains%2Fpf3gnuchains3x.git * dwarf2dbg.c (out_debug_info): Use TC_DWARF2_EMIT_OFFSET to emit a disjoint DW_AT range. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 74928481d7..d7681b7dbf 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2006-10-13 Sterling Augstine + + * dwarf2dbg.c (out_debug_info): Use TC_DWARF2_EMIT_OFFSET to emit + a disjoint DW_AT range. + 2006-10-13 Mei Ligang * config/tc-score.c (md_show_usage): Print -KPIC option usage. diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index eb9584b615..671a9b030d 100644 --- a/gas/dwarf2dbg.c +++ b/gas/dwarf2dbg.c @@ -1591,13 +1591,9 @@ out_debug_info (segT info_seg, segT abbrev_seg, segT line_seg, segT ranges_seg) } else { - /* This attributes is emitted if the code is disjoint. */ - - /* DW_AT_ranges */ - expr.X_op = O_symbol; - expr.X_add_symbol = section_symbol (ranges_seg); - expr.X_add_number = 0; - emit_expr (&expr, sizeof_address); + /* This attribute is emitted if the code is disjoint. */ + /* DW_AT_ranges. */ + TC_DWARF2_EMIT_OFFSET (section_symbol (ranges_seg), sizeof_offset); } /* DW_AT_name. We don't have the actual file name that was present