aboutsummaryrefslogtreecommitdiff
path: root/bfd/pef.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-08-31 16:03:42 +0930
committerAlan Modra <amodra@gmail.com>2015-08-31 16:26:10 +0930
commitd3435ae8ddeb3245b1358504f5382879f7fc04a7 (patch)
tree2f70a5fb41de5df08d46396f592ab781cdbd2a10 /bfd/pef.c
parent6cae483a9dc8d07c2743067d32026650b7eb37a9 (diff)
downloadfsf-binutils-gdb-d3435ae8ddeb3245b1358504f5382879f7fc04a7.zip
fsf-binutils-gdb-d3435ae8ddeb3245b1358504f5382879f7fc04a7.tar.gz
fsf-binutils-gdb-d3435ae8ddeb3245b1358504f5382879f7fc04a7.tar.bz2
More "Make asection->id and asection->index unsigned"
Fixes regressions introduced by 7292b3ac. * elflink.c (elf_sort_symbol): Use correctly sized type for calculating signed section->id difference. (elf_link_add_object_symbols): Likewise. * pef.c (bfd_pef_scan_start_address): Warning fix. * vms-alpha.c (vms_new_section_hook): Likewise.
Diffstat (limited to 'bfd/pef.c')
-rw-r--r--bfd/pef.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/pef.c b/bfd/pef.c
index 18be73b..4e7683b 100644
--- a/bfd/pef.c
+++ b/bfd/pef.c
@@ -487,7 +487,7 @@ bfd_pef_scan_start_address (bfd *abfd)
goto end;
for (section = abfd->sections; section != NULL; section = section->next)
- if ((section->index + 1) == header.main_section)
+ if ((long) (section->index + 1) == header.main_section)
break;
if (section == NULL)