Date: Tue, 10 May 2016 23:12:07 -0400 From: Eric McCorkle <eric@metricspace.net> To: Ed Maste <emaste@freebsd.org> Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: Re: Problem with objcopy corrupting section names Message-ID: <4F645FB4-BA35-4F0F-9EE0-C1167696E135@metricspace.net> In-Reply-To: <CAPyFy2Ced31J%2BVT2Sddgj_nyqwho2DtDwUvNzePZeifC-seXfQ@mail.gmail.com> References: <65BAB92F-271C-489F-A804-6496B4953599@metricspace.net> <CAPyFy2Ced31J%2BVT2Sddgj_nyqwho2DtDwUvNzePZeifC-seXfQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <emaste@freebsd.org> wrote: >=20 >> On 2 May 2016 at 18:25, Eric McCorkle <eric@metricspace.net> 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"=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F645FB4-BA35-4F0F-9EE0-C1167696E135>