Convert macros in elf-linux-core.h to inline functions
authorAlan Modra <amodra@gmail.com>
Thu, 21 Jan 2016 03:03:53 +0000 (13:33 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 21 Jan 2016 09:29:33 +0000 (19:59 +1030)
commitaeb7056972f1b383578204b9151b0ae6d8c1df81
tree19f5bd87b724ab2b626ec0f6acd3bde22f029de7
parentde64ce13a78669f094d6909fce51d210e2f9d2c0
Convert macros in elf-linux-core.h to inline functions

Besides changing some macros into inline functions, this removes
redundant memsets and uses bfd_put_* rather than H_PUT_*.

* elf-linux-core.h (swap_linux_prpsinfo32_out): New function.
(swap_linux_prpsinfo64_out): New function.
(LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
(LINUX_PRPSINFO64_SWAP_FIELDS): Delete.
* elf.c (elfcore_write_linux_prpsinfo32): Adjust.  Don't memset.
(elfcore_write_linux_prpsinfo64): Likewise.
* elf32-ppc.c (swap_ppc_linux_prpsinfo32_out): New function.
(PPC_LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
(elfcore_write_ppc_linux_prpsinfo32): Adjust.  Don't memset.
bfd/ChangeLog
bfd/elf-linux-core.h
bfd/elf.c
bfd/elf32-ppc.c