change argument type to bfd_byte
We operate on the pointer's target as a set of bytes, and this avoids doing arithmetic on void * which is undefined in ISO C. bfd/ChangeLog: 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * elf32-arm.c (put_thumb2_insn): Change argument type to bfd_byte *.
This commit is contained in:
parent
2533af11ba
commit
b98e687124
|
@ -1,3 +1,7 @@
|
||||||
|
2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
|
||||||
|
|
||||||
|
* elf32-arm.c (put_thumb2_insn): Change argument type to bfd_byte *.
|
||||||
|
|
||||||
2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
|
2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* Makefile.in: Regenerated with automake 1.11.6.
|
* Makefile.in: Regenerated with automake 1.11.6.
|
||||||
|
|
|
@ -4241,7 +4241,7 @@ put_thumb_insn (struct elf32_arm_link_hash_table * htab,
|
||||||
|
|
||||||
static void
|
static void
|
||||||
put_thumb2_insn (struct elf32_arm_link_hash_table * htab,
|
put_thumb2_insn (struct elf32_arm_link_hash_table * htab,
|
||||||
bfd * output_bfd, bfd_vma val, void * ptr)
|
bfd * output_bfd, bfd_vma val, bfd_byte * ptr)
|
||||||
{
|
{
|
||||||
/* T2 instructions are 16-bit streamed. */
|
/* T2 instructions are 16-bit streamed. */
|
||||||
if (htab->byteswap_code != bfd_little_endian (output_bfd))
|
if (htab->byteswap_code != bfd_little_endian (output_bfd))
|
||||||
|
|
Loading…
Reference in New Issue