On Tue, Jan 1, 2013 at 12:31 PM, Ian Lance Taylor <i...@google.com> wrote: > On Tue, Jan 1, 2013 at 9:10 AM, Steven Bosscher <stevenb....@gmail.com> wrote: >> >> Does XCOFF differ a lot from COFF? > > In a word, yes. While COFF and XCOFF share a distant ancestor, they > are in effect completely different object file formats.
simple-object-xcoff.c is based on simple-object-coff.c, which is why I acknowledged Ian in the authorship. The file header and section support is very similar. The 64 bit AIX XCOFF format complicated the structure layouts a little. AIX XCOFF embedded / inserted another layout of control sections within sections. I need to investigate how much CSECT support is necessary in simple object for the way that GCC LTO utilizes simple object. The patch is a start with basic functionality. Thanks, David