(setup_section): Add const and gettext calls for err.
authorAlan Modra <amodra@gmail.com>
Mon, 8 May 2000 04:28:06 +0000 (04:28 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 8 May 2000 04:28:06 +0000 (04:28 +0000)
binutils/ChangeLog
binutils/objcopy.c

index a25691b75764d111c745da9ad7d968a313d609d6..813fdff0adc9665cc555fcea9a3e34d2775aa082 100644 (file)
@@ -1,3 +1,7 @@
+2000-05-08  Alan Modra  <alan@linuxcare.com.au>
+
+       * objcopy.c (setup_section): Add const and gettext calls for err.
+
 2000-05-02  H.J. Lu  <hjl@gnu.org>
 
        * readelf.c (get_osabi_name): Handle ELFOSABI_NONE instead of
index e8b710fa3bb82b4ce6f4e6f57f49026ae9cfb4d4..0d778a36c65249141aef329d7dcea8be8ae77199 100644 (file)
@@ -1245,7 +1245,7 @@ setup_section (ibfd, isection, obfdarg)
   bfd_vma vma;
   bfd_vma lma;
   flagword flags;
-  char *err;
+  const char *err;
 
   if ((bfd_get_section_flags (ibfd, isection) & SEC_DEBUGGING) != 0
       && (strip_symbols == STRIP_DEBUG
@@ -1268,7 +1268,7 @@ setup_section (ibfd, isection, obfdarg)
 
   if (osection == NULL)
     {
-      err = "making";
+      err = _("making");
       goto loser;
     }
 
@@ -1277,7 +1277,7 @@ setup_section (ibfd, isection, obfdarg)
     size = (size + interleave - 1) / interleave;
   if (! bfd_set_section_size (obfd, osection, size))
     {
-      err = "size";
+      err = _("size");
       goto loser;
     }
 
@@ -1291,7 +1291,7 @@ setup_section (ibfd, isection, obfdarg)
 
   if (! bfd_set_section_vma (obfd, osection, vma))
     {
-      err = "vma";
+      err = _("vma");
       goto loser;
     }
 
@@ -1317,7 +1317,7 @@ setup_section (ibfd, isection, obfdarg)
                                 bfd_section_alignment (ibfd, isection))
       == false)
     {
-      err = "alignment";
+      err = _("alignment");
       goto loser;
     }
 
@@ -1326,7 +1326,7 @@ setup_section (ibfd, isection, obfdarg)
     flags = p->flags | (flags & SEC_HAS_CONTENTS);
   if (!bfd_set_section_flags (obfd, osection, flags))
     {
-      err = "flags";
+      err = _("flags");
       goto loser;
     }
 
@@ -1340,7 +1340,7 @@ setup_section (ibfd, isection, obfdarg)
      from the input section to the output section.  */
   if (!bfd_copy_private_section_data (ibfd, isection, obfd, osection))
     {
-      err = "private data";
+      err = _("private data");
       goto loser;
     }
 
This page took 0.032115 seconds and 4 git commands to generate.