summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/ld/emultempl
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-11-08 20:40:21 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-11-08 20:40:21 +0000
commit7a636f91724d476bb59dccf38e3e8fa338ffe7ab (patch)
tree8459cbf4a5e9064d44586d2b1754fd59362061e5 /gnu/usr.bin/binutils/ld/emultempl
parentf5d5e4fb5e3420097e7b9d688ba55a6405666d20 (diff)
Partially revert to binutils 2.14: do not put a ``warning: '' prefix
to stabs warning messages, as we already provide it in the message. This will not change until all our supported architectures move to ELF.
Diffstat (limited to 'gnu/usr.bin/binutils/ld/emultempl')
-rw-r--r--gnu/usr.bin/binutils/ld/emultempl/elf32.em11
1 files changed, 3 insertions, 8 deletions
diff --git a/gnu/usr.bin/binutils/ld/emultempl/elf32.em b/gnu/usr.bin/binutils/ld/emultempl/elf32.em
index b3e4639f072..ed4aba73911 100644
--- a/gnu/usr.bin/binutils/ld/emultempl/elf32.em
+++ b/gnu/usr.bin/binutils/ld/emultempl/elf32.em
@@ -1170,10 +1170,8 @@ ${ELF_INTERPRETER_SET_DEFAULT}
{
asection *s;
bfd_size_type sz;
- bfd_size_type prefix_len;
char *msg;
bfd_boolean ret;
- const char * gnu_warning_prefix = _("warning: ");
if (is->just_syms_flag)
continue;
@@ -1183,14 +1181,11 @@ ${ELF_INTERPRETER_SET_DEFAULT}
continue;
sz = bfd_section_size (is->the_bfd, s);
- prefix_len = strlen (gnu_warning_prefix);
- msg = xmalloc ((size_t) (prefix_len + sz + 1));
- strcpy (msg, gnu_warning_prefix);
- if (! bfd_get_section_contents (is->the_bfd, s, msg + prefix_len,
- (file_ptr) 0, sz))
+ msg = xmalloc ((size_t) (sz + 1));
+ if (! bfd_get_section_contents (is->the_bfd, s, msg, (file_ptr) 0, sz))
einfo ("%F%B: Can't read contents of section .gnu.warning: %E\n",
is->the_bfd);
- msg[prefix_len + sz] = '\0';
+ msg[sz] = '\0';
ret = link_info.callbacks->warning (&link_info, msg,
(const char *) NULL,
is->the_bfd, (asection *) NULL,