diff options
author | Nick Clifton <nickc@redhat.com> | 2000-03-01 20:39:07 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-03-01 20:39:07 +0000 |
commit | 86033394008aa009b3382199efa24b0cfa749862 (patch) | |
tree | d69205614c88f833cf46f7f09efe75b8e65ada6f /bfd/peicode.h | |
parent | 30e28a0e4beb1fae729bf1fd8dcce9074e154b3c (diff) | |
download | gdb-86033394008aa009b3382199efa24b0cfa749862.zip gdb-86033394008aa009b3382199efa24b0cfa749862.tar.gz gdb-86033394008aa009b3382199efa24b0cfa749862.tar.bz2 |
Fix building with --enable-targets=all
Diffstat (limited to 'bfd/peicode.h')
-rw-r--r-- | bfd/peicode.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/peicode.h b/bfd/peicode.h index b94d0f8..539cd7b 100644 --- a/bfd/peicode.h +++ b/bfd/peicode.h @@ -1,5 +1,5 @@ /* Support for the generic parts of PE/PEI, for BFD. - Copyright 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. Written by Cygnus Solutions. This file is part of BFD, the Binary File Descriptor library. @@ -697,7 +697,7 @@ typedef struct } jump_table; -jump_table jtab[] = +static jump_table jtab[] = { #ifdef I386MAGIC { I386MAGIC, @@ -761,7 +761,7 @@ pe_ILF_build_a_bfd (bfd * abfd, struct internal_filehdr internal_f; unsigned int import_type; unsigned int import_name_type; - asection_ptr id2, id4, id5, id6, id7, text; + asection_ptr id2, id4, id5, id6 = NULL, id7, text; text = NULL; @@ -1197,7 +1197,7 @@ _("%s: Recognised but unhandled machine type (0x%x) in Import Library Format arc source_dll = ptr + strlen (ptr) + 1; /* Verify that the strings are null terminated. */ - if (ptr[size - 1] != 0 || ((source_dll - ptr) >= size)) + if (ptr[size - 1] != 0 || ((unsigned long)(source_dll - ptr) >= size)) { _bfd_error_handler (_("%s: string not null terminated in ILF object file."), |