Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/arch/macppc/stand



On Thu, Dec 11, 2003 at 12:27:42AM +0000, Matt Thomas wrote:
> 
> Module Name:  src
> Committed By: matt
> Date:         Thu Dec 11 00:27:42 UTC 2003
> 
> Modified Files:
>       src/sys/arch/macppc/stand: Makefile
>       src/sys/arch/macppc/stand/fixcoff: Makefile fixcoff.c
>       src/sys/arch/macppc/stand/ofwboot: Makefile
> Removed Files:
>       src/sys/arch/macppc/stand/fixcoff: nb_progname.c
> 
> Log Message:
> Convert fixcoff into a true host tool by making it under tools.

Another alternative is to fix the binutils xcoff support.

We have fixcoff because of an issue with binutils and xcoff files and 
objcopy.

xcoff files come in two varieties, "small header" and "big header". The 
"big header" ones have some extra fields, and the OF boot loader in 
powermacs need some of those fields filled in.

When binutils (or at least the old binutils) saves a file, it saves space 
for these fields, but it doesn't fill them in. Before making our own 
version of fixcoff, I tried to get binutils to set the fields. However for 
some reason, every time I got a core dump. All I could tell was that when 
it was copying an elf file to an xcoff one, it didn't allocate space for 
the extra fields, so when I wrote to them I messed something up.

If we could make it so that objcopy when copying an elf file to an xcoff 
one would set these fields, then we wouldn't need fixcoff.

Take care,

Bill

Attachment: pgpK9DXK3WdGl.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index