Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 May 2016 18:25:18 -0400
From:      Eric McCorkle <eric@metricspace.net>
To:        freebsd-hackers@freebsd.org
Subject:   Problem with objcopy corrupting section names
Message-ID:  <65BAB92F-271C-489F-A804-6496B4953599@metricspace.net>

next in thread | raw e-mail | index | archive | help
Hello everyone, 

I've been doing quite a bit of work in the efi boot1 and loader codebases.  In particular, I've been trying to get both boot1 and loader using the same backend filesystem drivers. 

As background, both the boot1 and loader build processes use objcopy to convert the elf format executable produced by the platform build tools to the PE+ format used by EFI.

I've run into a weird problem where the section names are seemingly being corrupted for boot1. The process to reproduce this should be simple: just build boot1 and then do objdump -x boot1.efi and you should see that the section names are corrupted.

The code can be found here.  https://github.com/emc2/freebsd/tree/efize

Before I report this, can someone please do a sanity check and make sure the problem is reproducible and has doesn't have an easy solution that I've overlooked? 

Thanks, 
Eric
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
From owner-freebsd-hackers@freebsd.org  Tue May  3 03:41:01 2016
Return-Path: <owner-freebsd-hackers@freebsd.org>
Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F340B2BEC6;
 Tue,  3 May 2016 03:41:01 +0000 (UTC) (envelope-from grog@lemis.com)
Received: from www.lemis.com (www.lemis.com [208.86.226.86])
 by mx1.freebsd.org (Postfix) with ESMTP id 2035B181C;
 Tue,  3 May 2016 03:41:00 +0000 (UTC) (envelope-from grog@lemis.com)
Received: from eureka.lemis.com (www.lemis.com [208.86.226.86])
 by www.lemis.com (Postfix) with ESMTP id 0D0BB1B72800;
 Tue,  3 May 2016 03:40:54 +0000 (UTC)
Received: by eureka.lemis.com (Postfix, from userid 1004)
 id B5E1844A5FE; Tue,  3 May 2016 13:40:52 +1000 (AEST)
Date: Tue, 3 May 2016 13:40:52 +1000
From: Greg 'groggy' Lehey <grog@FreeBSD.org>
To: Jordan Hubbard <jordanhubbard@me.com>
Cc: Warren Block <wblock@wonkity.com>, freebsd-hackers@FreeBSD.org,
 freebsd-current@FreeBSD.org, freebsd-stable@FreeBSD.org
Subject: Re: FreeBSD Quarterly Status Report - First Quarter 2016 (fwd)
Message-ID: <20160503034052.GE15924@eureka.lemis.com>
References: <alpine.BSF.2.20.1605011847390.44343@wonkity.com>
 <3AED0DA0-5980-426F-A93E-0EC726A07AAE@me.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature"; boundary="ep0oHQY+/Gbo/zt0"
Content-Disposition: inline
In-Reply-To: <3AED0DA0-5980-426F-A93E-0EC726A07AAE@me.com>
Organization: The FreeBSD Project
Phone: +61-3-5346-1370, +61-3-5309-0418
Mobile: 0401 265 606.  Use only as instructed.
WWW-Home-Page: http://www.FreeBSD.org/
X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F  09AC 22E6 F290 507A 4223
User-Agent: Mutt/1.5.24 (2015-08-30)
X-BeenThere: freebsd-hackers@freebsd.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Technical Discussions relating to FreeBSD
 <freebsd-hackers.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-hackers>, 
 <mailto:freebsd-hackers-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-hackers/>;
List-Post: <mailto:freebsd-hackers@freebsd.org>
List-Help: <mailto:freebsd-hackers-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-hackers>, 
 <mailto:freebsd-hackers-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 03 May 2016 03:41:01 -0000


--ep0oHQY+/Gbo/zt0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

[line lengths recovered]

On Sunday,  1 May 2016 at 20:16:38 -0700, Jordan Hubbard wrote:
>
>> On May 1, 2016, at 5:49 PM, Warren Block <wblock@wonkity.com> wrote:
>>
>>   The first quarter of 2016 showed that FreeBSD retains a strong sense of
>>   ipseity. Improvements were pervasive, lending credence to the concept
>>   of meliorism. [ ??? ]
>
>
> I, for one, learned at least 4 new words in that announcement, 3 of
> which were actually real.

And the other is int?  OK, I'll bite.  Which one is unreal?

Greg
--
Sent from my desktop computer.
Finger grog@FreeBSD.org for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed.  If your Microsoft mail program
reports problems, please read http://lemis.com/broken-MUA

--ep0oHQY+/Gbo/zt0
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlcoHcQACgkQIubykFB6QiPAuACdEa8GtTb9Kt6lc2fUw7wRGqb3
QTIAn3vVQIiocbDvRmXbbz2w59+00O7Y
=MlmG
-----END PGP SIGNATURE-----

--ep0oHQY+/Gbo/zt0--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?65BAB92F-271C-489F-A804-6496B4953599>