Use bfd_get_32 and bfd_put_32 to access ch_type
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 22 Sep 2015 02:38:40 +0000 (19:38 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 22 Sep 2015 02:38:40 +0000 (19:38 -0700)
commitc8b187ea07f534bac147cbbc44dd08925f5734b0
tree70616f53b9376dd3213fed6d17d23ef9a174d68e
parent6b9e742a93e42312b4e4012046eb8310a11f516a
Use bfd_get_32 and bfd_put_32 to access ch_type

The ch_type field in Elf64_External_Chdr is 4 bytes.  We should use
bfd_get_32 and bfd_put_32 to access it.

* bfd.c (bfd_update_compression_header): Use bfd_put_32 on
ch_type.
(bfd_check_compression_header): Use bfd_get_32 on ch_type.
(bfd_convert_section_contents): Use bfd_get_32 and bfd_put_32
on ch_type.
bfd/ChangeLog
bfd/bfd.c
This page took 0.029348 seconds and 4 git commands to generate.