This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [ld] ld COFF support??
- From: Ian Lance Taylor <iant at google dot com>
- To: Megora Chai <megorachan at hotmail dot com>
- Cc: Binutils Development <binutils at sourceware dot org>
- Date: Tue, 15 Oct 2013 08:07:44 -0700
- Subject: Re: [ld] ld COFF support??
- Authentication-results: sourceware.org; auth=none
- References: <BLU0-SMTP62904C93E4594E6C8D27E2D81B0 at phx dot gbl>
On Tue, Oct 15, 2013 at 12:12 AM, Megora Chai <megorachan@hotmail.com> wrote:
>
> For a school assignment we are looking at how different file formats are
> linked. I am trying to examine the linking process of some formats using ld
> from binutils. Is LD able to link COFF format files (.obj or .lib) generated
> by microsoft tools?
The Microsoft object file format is based on COFF, but it is
significantly different and can not reasonably be called COFF any
more. It is normally called PE.
In any case the GNU linker is able to link both PE and COFF files.
(COFF == Common Object File Format and was created by AT&T for SVR3.
PE == Portable Executable and was created by Microsoft, based on COFF,
for Windows NT and Windows 95.)
Ian