From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) by sourceware.org (Postfix) with ESMTPS id 57AD93851C16 for ; Sat, 13 Jun 2020 10:31:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 57AD93851C16 Received: by mail-io1-xd42.google.com with SMTP id u13so12857092iol.10 for ; Sat, 13 Jun 2020 03:31:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to; bh=mqcV8I3Iinl+HV14wWtSYEMnz8tc7zIFBSvWbhXKI2I=; b=MgMgSNphsKf4Gwi2zvk8+MqTNzNa+UFSNs1kISHD/TIV6qELkLVURKIPJDn/Xy7bBj JTo6H2mH7ajtJucA9YysgQ+BRzJVjtSg3CNttyiRL6vXFNEtJHRa+wAwEdIRYe8fQi9h qE2q/twz75LGfwnn1kVKQ51rlZ0u3reudoI10mK9cTsb7OuI9idkC3uh7BpAEjikWmW7 zgu5lg+ZlRnNHXMZAH5Nd79K1krAzIgirtXZRsRUXPpfuvRD9/4s6WZ3lxcQ5qXo2vVq 8fJxOZS7+TmHDkvyy4VN8yZd/UdMO31naN3NCw729W5ffJrmHw60vPEV9g6O+ZaO/bC6 9idQ== X-Gm-Message-State: AOAM532oxFRfPFsaIyPa4BN5eXRNZs1ytSYonjH9OwcPWOAO2aN++2wz 9/hnjlv9t+m96HzSUJe7CEGpqPAx4WNamDGJ6MvgDTNi X-Google-Smtp-Source: ABdhPJxgVij+40RqSmJUVEXMBycBW6YmSBZqQrgdY2SckzmMgAUcVTtEm/wxYJzzYfR2jgera+x6bZm4i0bvLQhEbA0= X-Received: by 2002:a5e:d507:: with SMTP id e7mr17996716iom.132.1592044304730; Sat, 13 Jun 2020 03:31:44 -0700 (PDT) MIME-Version: 1.0 References: <20200612082111.GD15174@raven.inka.de> <20200612225013.GE15174@raven.inka.de> In-Reply-To: <20200612225013.GE15174@raven.inka.de> Reply-To: noloader@gmail.com From: Jeffrey Walton Date: Sat, 13 Jun 2020 06:31:26 -0400 Message-ID: Subject: Re: undefined references since newlib-3.2.0 To: newlib@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2020 10:31:46 -0000 On Fri, Jun 12, 2020 at 6:51 PM Josef Wolf wrote: > > On Fri, Jun 12, 2020 at 10:21:11AM +0200, Josef Wolf wrote: > > > To be honest, I completely fail to understand how this commit > > https://sourceware.org/git?p=newlib-cygwin.git;a=commit;h=f88aece242178ff0c187d56e34a79645fbc44a23 > > can possibly cause those link failures. After all, > > f88aece242178ff0c187d56e34a79645fbc44a23 shows no traces of abort/exit/kill/getpid. > > This patch replaces Balloc() by eBalloc() which calls __assert_func() on > failure which in turn calls exit() and/or abort() Please don't call abort(3). My programs usually handle sensitive information. I need destructors to run to ensure sensitive information is wiped. This is a compliance item. I also need to ensure sensitive information does not escape from the application's security boundary. For example, the sensitive information should not be written to the file system by way of a core file; and it should not be egressed to an error reporting service for the platform provider or application developer to inspect. Jeff