aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in2.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-08-31 08:32:29 +0930
committerAlan Modra <amodra@gmail.com>2015-08-31 12:37:36 +0930
commit7292b3ac749b5d10e527f57f8caf27113b55e3cb (patch)
treec57fc7c98bff6aa7e30fea0f91d95245148ffafb /bfd/bfd-in2.h
parent56e3225bfb25bfe5b58faab2242ffb919fb3e5d6 (diff)
downloadgdb-7292b3ac749b5d10e527f57f8caf27113b55e3cb.zip
gdb-7292b3ac749b5d10e527f57f8caf27113b55e3cb.tar.gz
gdb-7292b3ac749b5d10e527f57f8caf27113b55e3cb.tar.bz2
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.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r--bfd/bfd-in2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 82bf269..f73abf0 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1209,10 +1209,10 @@ typedef struct bfd_section
const char *name;
/* A unique sequence number. */
- int id;
+ unsigned int id;
/* Which section in the bfd; 0..n-1 as sections are created in a bfd. */
- int index;
+ unsigned int index;
/* The next section in the list belonging to the BFD, or NULL. */
struct bfd_section *next;