This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: BFD: include pei/coff targets in solaris/illumos platform target list
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Toomas Soome <tsoome at me dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Sun, 4 Oct 2015 09:09:19 -0700
- Subject: Re: BFD: include pei/coff targets in solaris/illumos platform target list
- Authentication-results: sourceware.org; auth=none
- References: <005C03D1-3622-4DC1-A640-FA6E72ECE591 at me dot com> <CAMe9rOpWA+hodT4yM4-ABkgBLkAacDBLENOQ-Od_a0qg=taQjQ at mail dot gmail dot com> <2F1EE08E-5192-4C40-AE3F-E68E48F6C326 at me dot com>
On Sun, Oct 4, 2015 at 8:37 AM, Toomas Soome <tsoome@me.com> wrote:
>
>> On 4. okt 2015, at 17:45, H.J. Lu <hjl.tools@gmail.com> wrote:
>>
>> On Tue, Sep 29, 2015 at 3:49 PM, Toomas Soome <tsoome@me.com> wrote:
>>>
>>> hi!
>>>
>>> as for UEFI binaries are spreading, would like to get pei/coff targets added to default list for solaris/illumos platform for bfd module as listed in this diff:
>>>
>>
>> This is what I checked into binutils master branch.
>>
>
> Thanks, just checked with this update:
>
> GNU objdump (GNU Binutils) 2.25.51.20151004
> GNU objcopy (GNU Binutils) 2.25.51.20151004
>
> do create and handle pei files:
>
> /home/tsoome/loader.efi: file format pei-x86-64
> /home/tsoome/loader.efi
> architecture: i386:x86-64, flags 0x00000133:
> HAS_RELOC, EXEC_P, HAS_SYMS, HAS_LOCALS, D_PAGED
> start address 0x000000000000cd80
>
> Characteristics 0x206
> executable
> line numbers stripped
> debugging information removed
>
> Time/Date Thu Jan 1 03:00:00 1970
> Magic 020b (PE32+)
> MajorLinkerVersion 2
> MinorLinkerVersion 25
>
>
> there is one minor issue tho (not related to this update, it is there in 2.25.1 at least), this pei-x86-64 file is created with objcopy from elf file and as you see the Time/Date is not set. Not a big issue, but at least
> GNU objcopy 2.17.50 [FreeBSD] 2007-07-03
> seems to set time/date properly - it may be freebsd own patch of course.
Please file a binutils bug report.
Thanks.
--
H.J.