]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* ldexp.c: Warning fixes.
authorAlan Modra <amodra@gmail.com>
Tue, 22 Feb 2005 13:00:26 +0000 (13:00 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 22 Feb 2005 13:00:26 +0000 (13:00 +0000)
* ldwrite.c: Likewise.
* emultempl/elf32.em: Likewise.

ld/ChangeLog
ld/emultempl/elf32.em
ld/ldexp.c
ld/ldwrite.c

index 598253d13cf0429384d0891529e1831a5e843bea..4bf9e90a633d2f9ada40f8166f6122ef0144798d 100644 (file)
@@ -1,3 +1,9 @@
+2005-02-22  Alan Modra  <amodra@bigpond.net.au>
+
+       * ldexp.c: Warning fixes.
+       * ldwrite.c: Likewise.
+       * emultempl/elf32.em: Likewise.
+
 2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>
 
        * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
index 5337e1814e407f8874f0a309972a6f1a4c0b7149..0f9045593803f928e28775249d403ec17a0d3f54 100644 (file)
@@ -1017,8 +1017,8 @@ if test x"$LDEMUL_BEFORE_ALLOCATION" != xgld"$EMULATION_NAME"_before_allocation;
     ELF_INTERPRETER_SET_DEFAULT="
   if (sinterp != NULL)
     {
-      sinterp->contents = ${ELF_INTERPRETER_NAME};
-      sinterp->size = strlen (sinterp->contents) + 1;
+      sinterp->contents = (unsigned char *) ${ELF_INTERPRETER_NAME};
+      sinterp->size = strlen ((char *) sinterp->contents) + 1;
     }
 
 "
index 5ac1162ffc957025494c6c83c1d52458b10dd6be..ec25557bafb3879da2cc7f4b1f3dee05bc66eefd 100644 (file)
@@ -1115,7 +1115,7 @@ exp_get_fill (etree_type *tree,
       fill = xmalloc ((len + 1) / 2 + sizeof (*fill) - 1);
       fill->size = (len + 1) / 2;
       dst = fill->data;
-      s = r.str;
+      s = (unsigned char *) r.str;
       val = 0;
       do
        {
index a41a0e96c1f597971f35fd36ff1a48af55c1f14d..56c4d0a3434c9e73793a47a282872e2bc30b9205 100644 (file)
@@ -1,6 +1,6 @@
 /* ldwrite.c -- write out the linked file
    Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2002,
-   2003, 2004 Free Software Foundation, Inc.
+   2003, 2004, 2005 Free Software Foundation, Inc.
    Written by Steve Chamberlain sac@cygnus.com
 
 This file is part of GLD, the Gnu Linker.
@@ -242,7 +242,7 @@ build_link_order (lang_statement_union_type *statement)
                     is going to be output, we'll change it into a
                     fill.  */
                  link_order->type = bfd_data_link_order;
-                 link_order->u.data.contents = "";
+                 link_order->u.data.contents = (unsigned char *) "";
                  link_order->u.data.size = 1;
                }
              else