| Index: third_party/yasm/patched-yasm/modules/dbgfmts/dwarf2/dwarf2-dbgfmt.c
|
| ===================================================================
|
| --- third_party/yasm/patched-yasm/modules/dbgfmts/dwarf2/dwarf2-dbgfmt.c (revision 165590)
|
| +++ third_party/yasm/patched-yasm/modules/dbgfmts/dwarf2/dwarf2-dbgfmt.c (working copy)
|
| @@ -25,7 +25,6 @@
|
| * POSSIBILITY OF SUCH DAMAGE.
|
| */
|
| #include <util.h>
|
| -/*@unused@*/ RCSID("$Id: dwarf2-dbgfmt.c 2130 2008-10-07 05:38:11Z peter $");
|
|
|
| #include <libyasm.h>
|
|
|
| @@ -46,7 +45,7 @@
|
| static int dwarf2_head_bc_calc_len
|
| (yasm_bytecode *bc, yasm_bc_add_span_func add_span, void *add_span_data);
|
| static int dwarf2_head_bc_tobytes
|
| - (yasm_bytecode *bc, unsigned char **bufp, void *d,
|
| + (yasm_bytecode *bc, unsigned char **bufp, unsigned char *bufstart, void *d,
|
| yasm_output_value_func output_value,
|
| /*@null@*/ yasm_output_reloc_func output_reloc);
|
|
|
| @@ -248,7 +247,8 @@
|
| }
|
|
|
| static int
|
| -dwarf2_head_bc_tobytes(yasm_bytecode *bc, unsigned char **bufp, void *d,
|
| +dwarf2_head_bc_tobytes(yasm_bytecode *bc, unsigned char **bufp,
|
| + unsigned char *bufstart, void *d,
|
| yasm_output_value_func output_value,
|
| yasm_output_reloc_func output_reloc)
|
| {
|
| @@ -288,7 +288,7 @@
|
| yasm_section_bcs_first(head->debug_ptr)),
|
| dbgfmt_dwarf2->sizeof_offset*8);
|
| output_value(&value, buf, dbgfmt_dwarf2->sizeof_offset,
|
| - (unsigned long)(buf-*bufp), bc, 0, d);
|
| + (unsigned long)(buf-bufstart), bc, 0, d);
|
| buf += dbgfmt_dwarf2->sizeof_offset;
|
| }
|
|
|
|
|