summaryrefslogtreecommitdiff
path: root/elfutils/src/ldgeneric.c
diff options
context:
space:
mode:
Diffstat (limited to 'elfutils/src/ldgeneric.c')
-rw-r--r--elfutils/src/ldgeneric.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/elfutils/src/ldgeneric.c b/elfutils/src/ldgeneric.c
index a33e9fcc..1b6c7207 100644
--- a/elfutils/src/ldgeneric.c
+++ b/elfutils/src/ldgeneric.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001, 2002, 2003, 2004 Red Hat, Inc.
+/* Copyright (C) 2001, 2002, 2003, 2004, 2005 Red Hat, Inc.
Written by Ulrich Drepper <drepper@redhat.com>, 2001.
This program is Open Source software; you can redistribute it and/or
@@ -137,7 +137,7 @@ dynamically_linked_p (void)
bool
-linked_from_dso_p (struct scninfo *scninfo, int symidx)
+linked_from_dso_p (struct scninfo *scninfo, size_t symidx)
{
struct usedfiles *file = scninfo->fileinfo;
@@ -1003,7 +1003,7 @@ add_section (struct usedfiles *fileinfo, struct scninfo *scninfo)
static int
-add_relocatable_file (struct usedfiles *fileinfo, int secttype)
+add_relocatable_file (struct usedfiles *fileinfo, GElf_Word secttype)
{
size_t scncnt;
size_t cnt;
@@ -2765,7 +2765,7 @@ sort_sections_lscript (void)
renaming the containing section in the output file. */
ld_state.nallsections = 0;
size_t segment_nr;
- size_t last_writable = ~0;
+ size_t last_writable = ~0ul;
for (segment_nr = 0; segment != NULL; segment = segment->next, ++segment_nr)
{
struct output_rule *orule;
@@ -2801,7 +2801,7 @@ sort_sections_lscript (void)
This is why it is important to get the last block. */
if (ld_state.ncopy > 0 || ld_state.common_syms != NULL)
{
- if (last_writable == ~0)
+ if (last_writable == ~0ul)
error (EXIT_FAILURE, 0, "no writable segment");
if (ld_state.allsections[last_writable]->type != SHT_NOBITS)
@@ -6278,7 +6278,7 @@ ld_generic_special_section_number_p (struct ld_state *statep, size_t number)
static bool
ld_generic_section_type_p (struct ld_state *statep, GElf_Word type)
{
- if ((type >= SHT_NULL && type < SHT_NUM)
+ if (type < SHT_NUM
/* XXX Enable the following two when implemented. */
// || type == SHT_GNU_LIBLIST
// || type == SHT_CHECKSUM