diff options
author | 2004-11-08 20:40:20 +0000 | |
---|---|---|
committer | 2004-11-08 20:40:20 +0000 | |
commit | bd5e9ed78614d6fddca1acb692c1fa5db5a41a3f (patch) | |
tree | 949f08640485e24d60d29ecd5a0c90d2038435be | |
parent | remove references to other wireless chips: not really useful. (diff) | |
download | wireguard-openbsd-bd5e9ed78614d6fddca1acb692c1fa5db5a41a3f.tar.xz wireguard-openbsd-bd5e9ed78614d6fddca1acb692c1fa5db5a41a3f.zip |
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.
-rw-r--r-- | gnu/usr.bin/binutils/ld/emultempl/elf32.em | 11 |
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, |