NetBSD Problem Report #55636

From gson@gson.org  Tue Sep  1 18:01:44 2020
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 724AE1A923A
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  1 Sep 2020 18:01:44 +0000 (UTC)
Message-Id: <20200901180139.A54B3253F75@guava.gson.org>
Date: Tue,  1 Sep 2020 21:01:39 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: bootx64.efi.so.tmp: error: PHDR segment not covered by LOAD segment
X-Send-Pr-Version: 3.95

>Number:         55636
>Category:       port-amd64
>Synopsis:       bootx64.efi.so.tmp: error: PHDR segment not covered by LOAD segment
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 01 18:05:00 +0000 2020
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current
>Organization:
>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:

Build logs from amd64 release builds contain error messages like
these:

  /tmp/build/2020.09.01.04.19.16-amd64/tools/bin/x86_64--netbsd-ld: bootx64.efi.so.tmp: error: PHDR segment not covered by LOAD segment

There is also a similar message regarding bootia32.efi.so.tmp.

The ld process is exiting with an exit status of zerodespite the
error, so the build continues and ultimately succeeds.

I don't know if this is actually breaking something, or is expected
and harmless but wrongly labeled as an error rather than a warning,
but I figure it's a bug either way.  And either way, it's making it
more difficult to locate actual build errors in the log by looking for
the string "error:".

>How-To-Repeat:

Build NetBSD-current/amd64.  Inspect the messages printed.

>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.