aboutsummaryrefslogtreecommitdiff
path: root/binutils/objcopy.c
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/objcopy.c
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/objcopy.c')
-rw-r--r--binutils/objcopy.c14
1 files changed, 7 insertions, 7 deletions
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;
}