aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/sunos.em
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-02-23 12:30:48 +0000
committerAlan Modra <amodra@gmail.com>2005-02-23 12:30:48 +0000
commit476391821eba2421a6f463c493de97210399a802 (patch)
tree7da463dd665ab9300f8ec7f2a393203ae39108f1 /ld/emultempl/sunos.em
parent2132e3a3184eae0655a82965d1cc90c65eddfd98 (diff)
downloadgdb-476391821eba2421a6f463c493de97210399a802.zip
gdb-476391821eba2421a6f463c493de97210399a802.tar.gz
gdb-476391821eba2421a6f463c493de97210399a802.tar.bz2
* pe-dll.c: Warning fixes.
* emultempl/sunos.em: Likewise.
Diffstat (limited to 'ld/emultempl/sunos.em')
-rw-r--r--ld/emultempl/sunos.em8
1 files changed, 4 insertions, 4 deletions
diff --git a/ld/emultempl/sunos.em b/ld/emultempl/sunos.em
index 070ff98..cc19201 100644
--- a/ld/emultempl/sunos.em
+++ b/ld/emultempl/sunos.em
@@ -10,7 +10,7 @@ cat >e${EMULATION_NAME}.c <<EOF
/* SunOS emulation code for ${EMULATION_NAME}
Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002,
- 2003, 2004 Free Software Foundation, Inc.
+ 2003, 2004, 2005 Free Software Foundation, Inc.
Written by Steve Chamberlain <sac@cygnus.com>
SunOS shared library support by Ian Lance Taylor <ian@cygnus.com>
@@ -917,7 +917,7 @@ gld${EMULATION_NAME}_set_need (lang_input_statement_type *inp)
bfd_put_32 (output_bfd, (bfd_vma) 0, need_pinfo + 4);
bfd_put_16 (output_bfd, (bfd_vma) 0, need_pinfo + 8);
bfd_put_16 (output_bfd, (bfd_vma) 0, need_pinfo + 10);
- strcpy (need_pnames, inp->filename);
+ strcpy ((char *) need_pnames, inp->filename);
}
else
{
@@ -932,7 +932,7 @@ gld${EMULATION_NAME}_set_need (lang_input_statement_type *inp)
sscanf (verstr, ".so.%d.%d", &maj, &min);
bfd_put_16 (output_bfd, (bfd_vma) maj, need_pinfo + 8);
bfd_put_16 (output_bfd, (bfd_vma) min, need_pinfo + 10);
- strcpy (need_pnames, inp->local_sym_name + 2);
+ strcpy ((char *) need_pnames, inp->local_sym_name + 2);
}
c = (need_pinfo - need_contents) / NEED_ENTRY_SIZE;
@@ -943,7 +943,7 @@ gld${EMULATION_NAME}_set_need (lang_input_statement_type *inp)
need_pinfo + 12);
need_pinfo += NEED_ENTRY_SIZE;
- need_pnames += strlen (need_pnames) + 1;
+ need_pnames += strlen ((char *) need_pnames) + 1;
}
}