change argument type to bfd_byte
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Wed, 13 Apr 2016 08:41:23 +0000 (04:41 -0400)
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Wed, 20 Apr 2016 10:57:44 +0000 (06:57 -0400)
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 *.

bfd/ChangeLog
bfd/elf32-arm.c

index f53809775594d1decb0b852797012c2fb6f3c882..fe09bac121081b056f17fe4383c9f96727f2de9f 100644 (file)
@@ -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.
index 1d506f69fddfc57ed6ca8860bb87b24f091e3918..6e27155d5d30fdb5127c75448c722c7b0a03f4bb 100644 (file)
@@ -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))
This page took 0.044036 seconds and 4 git commands to generate.