aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1995-10-31 23:29:05 +0000
committerFred Fish <fnf@specifix.com>1995-10-31 23:29:05 +0000
commit6ab826bd986e25ff65bf78451866a618d704411e (patch)
treeebb963024936cc55372694128806f98473943ba5 /bfd/elfcode.h
parent02a5d235259cb3e5a478ce4a81833bdfa3cce457 (diff)
downloadgdb-6ab826bd986e25ff65bf78451866a618d704411e.zip
gdb-6ab826bd986e25ff65bf78451866a618d704411e.tar.gz
gdb-6ab826bd986e25ff65bf78451866a618d704411e.tar.bz2
* libelf.h: Rename to elf-bfd.h to avoid conflict with
systems that have a system <libelf.h>. * Makefile.in: Globally replace libelf.h with elf-bfd.h. * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c, elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c, elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c, elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c, elfxx-target.h: Include elf-bfd.h rather than libelf.h. * elfxx-target.h: Change libelf.h reference to elf-bfd.h.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r--bfd/elfcode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index bbeb802..740ddda 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -68,7 +68,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "sysdep.h"
#include "bfdlink.h"
#include "libbfd.h"
-#include "libelf.h"
+#include "elf-bfd.h"
/* Renaming structures, typedefs, macros and functions to be size-specific. */
#define Elf_External_Ehdr NAME(Elf,External_Ehdr)
@@ -646,7 +646,7 @@ write_relocs (abfd, sec, data)
Elf_Internal_Shdr *rela_hdr;
Elf_External_Rela *outbound_relocas;
Elf_External_Rel *outbound_relocs;
- int idx;
+ unsigned int idx;
int use_rela_p = get_elf_backend_data (abfd)->use_rela_p;
asymbol *last_sym = 0;
int last_sym_idx = 9999999; /* should always be written before use */