From: Alan Modra Date: Mon, 8 May 2000 04:28:06 +0000 (+0000) Subject: (setup_section): Add const and gettext calls for err. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a89cc7d7ee5cb971a983f4a2ef8943566972fb3;p=binutils-gdb.git (setup_section): Add const and gettext calls for err. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index a25691b7576..813fdff0adc 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2000-05-08 Alan Modra + + * objcopy.c (setup_section): Add const and gettext calls for err. + 2000-05-02 H.J. Lu * readelf.c (get_osabi_name): Handle ELFOSABI_NONE instead of diff --git a/binutils/objcopy.c b/binutils/objcopy.c index e8b710fa3bb..0d778a36c65 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; }