aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-05-08 04:28:06 +0000
committerAlan Modra <amodra@gmail.com>2000-05-08 04:28:06 +0000
commit1a89cc7d7ee5cb971a983f4a2ef8943566972fb3 (patch)
tree55bd28d9067f079b5759883e9065d1a844ddc333 /binutils
parentd929b26ff10049094a5f5efe875af853f845b494 (diff)
downloadgdb-1a89cc7d7ee5cb971a983f4a2ef8943566972fb3.zip
gdb-1a89cc7d7ee5cb971a983f4a2ef8943566972fb3.tar.gz
gdb-1a89cc7d7ee5cb971a983f4a2ef8943566972fb3.tar.bz2
(setup_section): Add const and gettext calls for err.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/objcopy.c14
2 files changed, 11 insertions, 7 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index a25691b..813fdff 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index e8b710f..0d778a3 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -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;
}