mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
PR binutils/2454
* avr-dis.c (avr_operand): Arrange for a comment to appear before the symolic form of an address, so that the output of objdump -d can be reassembled.
This commit is contained in:
@@ -139,7 +139,12 @@ avr_operand (unsigned int insn, unsigned int insn2, unsigned int pc, int constra
|
||||
case 'h':
|
||||
*sym = 1;
|
||||
*sym_addr = ((((insn & 1) | ((insn & 0x1f0) >> 3)) << 16) | insn2) * 2;
|
||||
sprintf (buf, "0x");
|
||||
/* See PR binutils/2545. Ideally we would like to display the hex
|
||||
value of the address only once, but this would mean recoding
|
||||
objdump_print_address() which would affect many targets. */
|
||||
sprintf (buf, "%#lx", * sym_addr);
|
||||
sprintf (comment, "0x");
|
||||
|
||||
break;
|
||||
|
||||
case 'L':
|
||||
|
||||
Reference in New Issue
Block a user