public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@google.com>
To: Megora Chai <megorachan@hotmail.com>
Cc: Binutils Development <binutils@sourceware.org>
Subject: Re: [ld] ld COFF support??
Date: Tue, 15 Oct 2013 15:07:00 -0000	[thread overview]
Message-ID: <CAKOQZ8w+cXU1ErPRC-S5UJFzVPJPeQZye5VquKmiWsfFpPGChw@mail.gmail.com> (raw)
In-Reply-To: <BLU0-SMTP62904C93E4594E6C8D27E2D81B0@phx.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

      parent reply	other threads:[~2013-10-15 15:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-15  7:12 Megora Chai
2013-10-15  7:22 ` suzuki toshiya
2013-10-15 15:07 ` Ian Lance Taylor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKOQZ8w+cXU1ErPRC-S5UJFzVPJPeQZye5VquKmiWsfFpPGChw@mail.gmail.com \
    --to=iant@google.com \
    --cc=binutils@sourceware.org \
    --cc=megorachan@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).