public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "Clément Chigot" <chigot@adacore.com>
To: builder@sourceware.org
Cc: binutils@sourceware.org
Subject: Re: ☠ Buildbot (Sourceware): binutils-gdb - failed compile (failure) (master)
Date: Fri, 13 Oct 2023 16:48:43 +0200	[thread overview]
Message-ID: <CAJ307Egv-6zJQo=ifWgQ0XTgi2zdbZajyY4S7ALQE_LMvvoacg@mail.gmail.com> (raw)
In-Reply-To: <20231013144004.B2C9938582A1@sourceware.org>

This is mine. Not sure why I don't have the error message locally
though. Maybe something with -Werror. I'll push the following fix:

Author: Clément Chigot <chigot@adacore.com>
Date:   Fri Oct 13 16:43:32 2023 +0200

    ld: replace wrong bfd_malloc in nto.em

    xmalloc should be used in emultation template instead of bfd_malloc.

    ld/ChangeLog:

            * emultempl/nto.em (nto_lookup_QNX_note_section): Replace
            bfd_malloc by xmalloc.

diff --git a/ld/emultempl/nto.em b/ld/emultempl/nto.em
index f4c76f18fc2..273502dd802 100644
--- a/ld/emultempl/nto.em
+++ b/ld/emultempl/nto.em
@@ -98,7 +98,7 @@ nto_lookup_QNX_note_section(int type)
        continue;

       /* Verify that this is a QNX note of the expected type.  */
-      sec->contents = bfd_malloc(sec->size);
+      sec->contents = xmalloc(sec->size);
       if (!bfd_get_section_contents (sec->owner, sec, sec->contents,
(file_ptr) 0,
                                     sec->size))
        einfo (_("%F%P: %pB: can't read contents of section .note: %E\n"),

Sorry about the trouble
Clément

  reply	other threads:[~2023-10-13 14:48 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-13 14:40 builder
2023-10-13 14:48 ` Clément Chigot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-04-23 18:52 builder
2024-01-29 19:38 builder
2024-01-22  0:59 builder
2024-01-16 11:31 builder
2024-01-16 10:22 builder
2023-12-29  7:43 builder
2023-11-24  9:13 builder
2023-10-06 20:07 builder
2023-09-25  9:56 builder
2023-09-25  9:22 builder
2023-08-18 17:45 builder
2023-08-02  9:02 builder
2023-07-27 14:32 builder
2023-07-21 12:06 builder
2023-07-19  0:43 builder
2023-05-26  9:02 builder
2023-05-26  7:16 builder
2023-05-23  6:10 builder
2023-04-24  0:31 builder
2023-04-24  6:04 ` Jan Beulich
2023-04-24 10:33   ` Alan Modra
2023-04-24 10:39     ` Jan Beulich
2023-04-24 11:48     ` Mark Wielaard
2023-04-21 13:56 builder
2023-04-14  0:30 builder
2023-03-31  6:44 builder
2023-03-07 16:17 builder
2023-01-17 11:46 builder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ307Egv-6zJQo=ifWgQ0XTgi2zdbZajyY4S7ALQE_LMvvoacg@mail.gmail.com' \
    --to=chigot@adacore.com \
    --cc=binutils@sourceware.org \
    --cc=builder@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).