From owner-freebsd-hackers@freebsd.org Wed May 11 03:12:09 2016 Return-Path: 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 A7507B368F4 for ; Wed, 11 May 2016 03:12:09 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from mail.metricspace.net (mail.metricspace.net [IPv6:2001:470:1f11:617::107]) by mx1.freebsd.org (Postfix) with ESMTP id 7BD3A11A6; Wed, 11 May 2016 03:12:09 +0000 (UTC) (envelope-from eric@metricspace.net) Received: from [IPv6:2001:470:1f11:617:8fe:6a13:797b:e9c9] (unknown [IPv6:2001:470:1f11:617:8fe:6a13:797b:e9c9]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: eric) by mail.metricspace.net (Postfix) with ESMTPSA id B09711FA4; Wed, 11 May 2016 03:12:08 +0000 (UTC) References: <65BAB92F-271C-489F-A804-6496B4953599@metricspace.net> Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <4F645FB4-BA35-4F0F-9EE0-C1167696E135@metricspace.net> Cc: "freebsd-hackers@freebsd.org" X-Mailer: iPad Mail (13D15) From: Eric McCorkle Subject: Re: Problem with objcopy corrupting section names Date: Tue, 10 May 2016 23:12:07 -0400 To: Ed Maste X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2016 03:12:09 -0000 I've been head-down in my boot/loader project (as well as at work), but I've= basically confirmed that this is an issue with the tool chain. I can repro= duce it reliably, and I have a workaround. It seems to manifest when the -j= option is used and some sections are omitted. My changes are pulling the filesystem backend code over from loader into boo= t, which seemed to add some new sections. There's a simple enough workaround though (don't omit sections), and I want t= o keep up my current momentum on this stuff. I'll circle back around once I= 've got this project ready for testing. > On May 4, 2016, at 09:23, Ed Maste wrote: >=20 >> On 2 May 2016 at 18:25, Eric McCorkle wrote: >>=20 >> 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 b= uild boot1 and then do objdump -x boot1.efi and you should see that the sect= ion names are corrupted. >=20 > This could well be a bug in elfcopy's libpe - it's a new addition to > the ELF Tool Chain project, and I have not tested it extensively > outside of the plain boot1.efi and loader.efi. To confirm my > understanding, this happens with your patched tree, but not stock > FreeBSD? Also, in what way are they corrupted? It's expected that > section will be truncated, as the COFF format only supports char[8] > for the name. >=20 > If you mail me (off-list) a copy of boot1.sym I'll take a look. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"=