Iterate ELF sections by pointer
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 20 Apr 2015 15:50:01 +0000 (08:50 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 20 Apr 2015 15:50:01 +0000 (08:50 -0700)
commite06efbf1c8198e25ef36a9787862f9720a94ba7b
treed85213d1c6c12e3de9c5c275e1fa9a56f3d2c802
parentd3b47e2bd4f2924e965c586d3bf4d0b0cc6b40cc
Iterate ELF sections by pointer

Iterate ELF sections by pointer without section counter.  It removes
"i++".

* elf.c (assign_file_positions_for_non_load_sections): Iterate
sections by pointer.
(_bfd_elf_assign_file_positions_for_non_load): Likewise.
bfd/ChangeLog
bfd/elf.c