Subject: Re: CVS commit: syssrc
To: Simon Burge <simonb@netbsd.org>
From: Bill Studenmund <wrstuden@nas.nasa.gov>
List: source-changes
Date: 11/22/1999 18:09:01
On Tue, 23 Nov 1999, Simon Burge wrote:

> Bill Studenmund wrote:
> 
> > Added Files:
> > 
> > 	syssrc/sys/arch/macppc/stand/fixcoff: Makefile elf32_powerpc_merge.x
> > 	    fixcoff.c
> > 
> > Log Message:
> > 
> > Add fixcoff, a program to be used during a build to help make xcoff'
> > binaries from elf ones.
> 
> Is this something that can somehow be merged into objcopy by adding a
> new BFD type?  I'll understand if the answer is "no", because I've had
> this battle with pmax executable formats :-)

Kinda. This program fixes up what objcopy produces when turning an elf
file into an xcoff one. Ideally objcopy would do the right thing, but the
xcoff code won't update the extended headers if the input file isn't an
xcoff one. When I tried to hard code this updating, objcopy would dump
core. Since gdb isn't fully up to speed, I wasn't able to figure out what
was wrong.

Thus this program. It should go away when objcopy gets fixed. To encourage
that, we don't actually install it, just run it on the build host. :-)

elf32_powerpc_merge.x is an ld script which will generate an elf-format
binary which will work right when turned into an xcoff file.

I install it here because I couldn't get ld to find it if it were in
/usr/share/ldscripts (long story).

Take care,

Bill