diff options
author | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-04-13 04:41:23 -0400 |
---|---|---|
committer | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-04-20 06:57:44 -0400 |
commit | b98e6871247e1ef764360f6d042254ce4af62ca4 (patch) | |
tree | 1fe085402eb31be2d95b0bd7b451a59b6963e971 | |
parent | 2533af11baa8a9a330798a2add1a59183e3b5c75 (diff) | |
download | gdb-b98e6871247e1ef764360f6d042254ce4af62ca4.zip gdb-b98e6871247e1ef764360f6d042254ce4af62ca4.tar.gz gdb-b98e6871247e1ef764360f6d042254ce4af62ca4.tar.bz2 |
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 *.
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/elf32-arm.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f538097..fe09bac 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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> * Makefile.in: Regenerated with automake 1.11.6. diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index 1d506f6..6e27155 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -4241,7 +4241,7 @@ put_thumb_insn (struct elf32_arm_link_hash_table * htab, static void 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. */ if (htab->byteswap_code != bfd_little_endian (output_bfd)) |