aboutsummaryrefslogtreecommitdiff
path: root/gas/read.h
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2020-08-03 22:02:24 +0200
committerMark Wielaard <mark@klomp.org>2020-08-04 11:42:53 +0200
commit6b9a135d72c3826b9b5e2a5d35acfb777ec18dcd (patch)
tree8d49ce5f3a515c53d657750160adda825017a990 /gas/read.h
parentf63d03dde00449e71e32fea3496edc69d2e7d386 (diff)
downloadgdb-6b9a135d72c3826b9b5e2a5d35acfb777ec18dcd.zip
gdb-6b9a135d72c3826b9b5e2a5d35acfb777ec18dcd.tar.gz
gdb-6b9a135d72c3826b9b5e2a5d35acfb777ec18dcd.tar.bz2
gas: Use udata for DW_AT_high_pc when emitting DWARF4
For DWARF4 DW_AT_high_pc can be expressed as constant offset from DW_AT_low_pc which saves a relocation. Use DW_FORM_udate (uleb128) to keep the constant value as small as possible. gas/ChangeLog: * dwarf2dbg.c (out_debug_abbrev): When DWARF2_VERSION >= 4, use DW_FORM_udata for DW_AT_high_pc. (out_debug_info): Use emit_leb128_expr for DW_AT_high_pc, when DWARF2_VERSION >= 4. * read.c (emit_leb128_exp): No longer static. * read.h (emit_leb128_exp): Define.
Diffstat (limited to 'gas/read.h')
-rw-r--r--gas/read.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/read.h b/gas/read.h
index 502f3b6..ffcdbb6 100644
--- a/gas/read.h
+++ b/gas/read.h
@@ -132,6 +132,7 @@ extern void emit_expr_with_reloc (expressionS *exp, unsigned int nbytes,
TC_PARSE_CONS_RETURN_TYPE);
extern void emit_expr_fix (expressionS *, unsigned int, fragS *, char *,
TC_PARSE_CONS_RETURN_TYPE);
+extern void emit_leb128_expr (expressionS *, int);
extern void equals (char *, int);
extern void float_cons (int);
extern void ignore_rest_of_line (void);