Make asection->id and asection->index unsigned
authorAlan Modra <amodra@gmail.com>
Sun, 30 Aug 2015 23:02:29 +0000 (08:32 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 31 Aug 2015 03:07:36 +0000 (12:37 +0930)
commit7292b3ac749b5d10e527f57f8caf27113b55e3cb
treec57fc7c98bff6aa7e30fea0f91d95245148ffafb
parent56e3225bfb25bfe5b58faab2242ffb919fb3e5d6
Make asection->id and asection->index unsigned

These int vars are really unsigned, so make them so.

* section.c (struct bfd_section): Make "id" and "index" unsigned.
* coff-rs6000.c (_bfd_xcoff_sizeof_headers): Adjust local var to suit.
* elf.c (elf_map_symbols): Likewise.
* elf64-ppc.c (sym_exists_at): Make "id" param unsigned.
(struct ppc_link_hash_table): Make "top_id" and "top_index" unsigned.
(ppc64_elf_setup_section_lists): Ditto for local vars.
* elf32-arm.c: Similarly to elf64-ppc.c.
* elf32-avr.c: Likewise.
* elf32-hppa.c: Likewise.
* elf32-m68hc1x.c: Likewise.
* elf32-metag.c: Likewise.
* elf32-nios2.c: Likewise.
* elfnn-aarch64.c: Likewise.
* simple.c (struct saved_offsets): Make "section_count" unsigned.
* bfd-in2.h: Regenerate.
14 files changed:
bfd/ChangeLog
bfd/bfd-in2.h
bfd/coff-rs6000.c
bfd/elf.c
bfd/elf32-arm.c
bfd/elf32-avr.c
bfd/elf32-hppa.c
bfd/elf32-m68hc1x.c
bfd/elf32-metag.c
bfd/elf32-nios2.c
bfd/elf64-ppc.c
bfd/elfnn-aarch64.c
bfd/section.c
bfd/simple.c