GNU Binutils with patches for OS216
Revision | 6e1cb1a6e6a9cf32d58f5f9dd41365c6d5b635b0 (tree) |
---|---|
Zeit | 2006-03-21 00:14:49 |
Autor | Paul Brook <paul@code...> |
Commiter | Paul Brook |
2006-03-20 Paul Brook <paul@codesourcery.com>
* config/tc-arm.c (output_relax_insn): Call dwarf2_emit_insn before
outputting the insn.
@@ -1,3 +1,8 @@ | ||
1 | +2006-03-20 Paul Brook <paul@codesourcery.com> | |
2 | + | |
3 | + * config/tc-arm.c (output_relax_insn): Call dwarf2_emit_insn before | |
4 | + outputting the insn. | |
5 | + | |
1 | 6 | 2006-03-18 Jan-Benedict Glaw <jbglaw@lug-owl.de> |
2 | 7 | |
3 | 8 | * config/tc-vax.c: Update copyright year. |
@@ -7982,6 +7982,12 @@ output_relax_insn (void) | ||
7982 | 7982 | symbolS *sym; |
7983 | 7983 | int offset; |
7984 | 7984 | |
7985 | +#ifdef OBJ_ELF | |
7986 | + /* The size of the instruction is unknown, so tie the debug info to the | |
7987 | + start of the instruction. */ | |
7988 | + dwarf2_emit_insn (0); | |
7989 | +#endif | |
7990 | + | |
7985 | 7991 | switch (inst.reloc.exp.X_op) |
7986 | 7992 | { |
7987 | 7993 | case O_symbol: |
@@ -8000,10 +8006,6 @@ output_relax_insn (void) | ||
8000 | 8006 | to = frag_var (rs_machine_dependent, INSN_SIZE, THUMB_SIZE, |
8001 | 8007 | inst.relax, sym, offset, NULL/*offset, opcode*/); |
8002 | 8008 | md_number_to_chars (to, inst.instruction, THUMB_SIZE); |
8003 | - | |
8004 | -#ifdef OBJ_ELF | |
8005 | - dwarf2_emit_insn (INSN_SIZE); | |
8006 | -#endif | |
8007 | 8009 | } |
8008 | 8010 | |
8009 | 8011 | /* Write a 32-bit thumb instruction to buf. */ |