mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
* config/tc-v850.c (md_apply_fix3): Do simple byte, short and
word fixups too. Fixes "difference between forward references".
This commit is contained in:
@ -1,6 +1,9 @@
|
|||||||
start-sanitize-v850
|
start-sanitize-v850
|
||||||
Fri Aug 30 23:50:08 1996 Jeffrey A Law (law@cygnus.com)
|
Fri Aug 30 23:50:08 1996 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
|
* config/tc-v850.c (md_apply_fix3): Do simple byte, short and
|
||||||
|
word fixups too.
|
||||||
|
|
||||||
* config/tc-v850.c (md_apply_fix3): Use little endian get/put
|
* config/tc-v850.c (md_apply_fix3): Use little endian get/put
|
||||||
routines to fetch/store the updated instruction from/to memory.
|
routines to fetch/store the updated instruction from/to memory.
|
||||||
(v850_insert_operand): If the operand has a specialized insert
|
(v850_insert_operand): If the operand has a specialized insert
|
||||||
|
@ -915,6 +915,17 @@ md_apply_fix3 (fixp, valuep, seg)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (fixp->fx_done)
|
||||||
|
{
|
||||||
|
/* We still have to insert the value into memory! */
|
||||||
|
where = fixp->fx_frag->fr_literal + fixp->fx_where;
|
||||||
|
if (fixp->fx_size == 1)
|
||||||
|
*where = value & 0xff;
|
||||||
|
if (fixp->fx_size == 2)
|
||||||
|
bfd_putl16(value & 0xffff, (unsigned char *) where);
|
||||||
|
if (fixp->fx_size == 4)
|
||||||
|
bfd_putl32(value, (unsigned char *) where);
|
||||||
|
}
|
||||||
|
|
||||||
fixp->fx_addnumber = value;
|
fixp->fx_addnumber = value;
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user