aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2006-10-13 11:36:03 +0000
committerNick Clifton <nickc@redhat.com>2006-10-13 11:36:03 +0000
commiteb1fe072ef479ea99f4a5a1ab11d9271bf3078c1 (patch)
tree5bedab2adc3543926968beb5f54f7c658536ba50 /gas
parentf9c026a85b129328be8ed9ce74f19fc0065454be (diff)
downloadfsf-binutils-gdb-eb1fe072ef479ea99f4a5a1ab11d9271bf3078c1.zip
fsf-binutils-gdb-eb1fe072ef479ea99f4a5a1ab11d9271bf3078c1.tar.gz
fsf-binutils-gdb-eb1fe072ef479ea99f4a5a1ab11d9271bf3078c1.tar.bz2
* dwarf2dbg.c (out_debug_info): Use TC_DWARF2_EMIT_OFFSET to emit a disjoint DW_AT range.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/dwarf2dbg.c10
2 files changed, 8 insertions, 7 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 7492848..d7681b7 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-13 Sterling Augstine <sterling@tensilica.com>
+
+ * dwarf2dbg.c (out_debug_info): Use TC_DWARF2_EMIT_OFFSET to emit
+ a disjoint DW_AT range.
+
2006-10-13 Mei Ligang <ligang@sunnorth.com.cn>
* config/tc-score.c (md_show_usage): Print -KPIC option usage.
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index eb9584b..671a9b0 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