[comp.os.minix] gcc a.out formatg -> ACK a.out format

tonyg@cs.uq.oz.au (Tony Gedge) (04/21/91)

Has anyone got a GNU a.out -> ACK a.out executable translator for
680x0 machines?  I have one from plains.nodak.edu which appears to be a
386 version, but I'm not having much success munging it :-(

Alternately, anyone got doco on GNU a.out format?

Thanks,

Tony Gedge.

--
 -------------------------------------------------------------------------
| Computer Science Department,        | tonyg@cs.uq.oz.au   (Tony Gedge)  |
| University of Queensland, Australia.| "cc stands for Cryptic Crossword" |
 -------------------------------------------------------------------------

Christoph van Wuellen <HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu> (04/22/91)

I have a GNU a.out --> ST MINIX outmix.h format translator which translates
binaries. Of course, the GNU binaries must be relocatable, and the GEMDOS
relocation table is generated.

I designed this module for use with the GNU linker (i.e. the ld exec's the
conversion program as a last step or simply calls this module).

I have also tried to implement this to work on-file. Text and Data need not
be copied then because the headers are (incidentally) equally long.
But since the files become shorter and MINIX lacks a ftruncate call, thie
produces much junk on disk.

C.v.W.

Christoph van Wuellen <HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu> (04/22/91)

a 'real' GNU a.out --> ACK a.out conversion program is a mess since GU
supports text/data/bss, whereas ACK has a section concept.

While this makes a ACK --> GNU converter impossible (imagine the .rom
secton), with some definitions
text segment --> section called .text
data segment --> section called .data
bss  segment --> section called .bss

and an extra (empty) section .rom such a converter might be possible,
but I see no application.

C.v.W.