From: wkt@tuhs.org (Warren Toomey)
Subject: [Unix-jun72] Early a.out headers
Date: Fri, 2 May 2008 08:23:55 +1000 [thread overview]
Message-ID: <20080501222355.GA75266@minnie.tuhs.org> (raw)
In-Reply-To: <31410.1209664053@mini>
On Thu, May 01, 2008 at 01:47:33PM -0400, Brad Parker wrote:
> yes, I think 0405 and 0407 a.out's are different.
I managed to scan in the 2nd Edition manuals, and they are available as a PDF
here: http://minnie.tuhs.org/Z/2ndEdManuals/unix_2nd_edition_manual.pdf
[ That URL is guaranteed to be ephemeral; Al, could you copy it to bitsavers? ]
The skew on some of the pages comes from the photocopy that I have. Apologies.
1st Edition a.out headers were 0405, 12 bytes long. 2nd Edition a.out headers
were 0407, 14 bytes long. In terms of the userland binaries we have from
this era (on the s2 tape at
http://www.tuhs.org/Archive/PDP-11/Distributions/research/1972_stuff/s2-bits.tar.gz), some binaries are 0405 and others are 0407. Here are the 0405 ones:
bin/: bin/mv
bin/ar bin/od
bin/bas bin/pr
bin/cat bin/rew
bin/chball bin/rmdir
bin/check bin/roff
bin/chown bin/sh
bin/cmp bin/skip
bin/cp bin/sort
bin/date bin/stat
bin/db bin/stty
bin/dc bin/su
bin/df bin/sum
bin/du bin/tap
bin/echo bin/tm
bin/ed bin/tty
bin/exit bin/wc
bin/form bin/who
bin/goto bin/write
bin/if etc/getty
bin/login etc/glob
bin/ls etc/init
bin/mail etc/msh
bin/mesg etc/suftab
bin/mkdir
Here are the 0407 ones:
bin/as usr/fort/fc1
bin/cc usr/fort/fc2
bin/ds usr/fort/fc3
bin/fc usr/fort/fc4
bin/find usr/jack/a.out
bin/ld usr/jack/x.o
bin/maki usr/lib/c0
bin/nm usr/lib/c1
bin/size usr/lib/crt0.o
bin/strip usr/lib/fr0.o
bin/un usr/sys/a.out
etc/as2
As you can see, as and as2 are 0407, hence they are V2 binaries, and so
would be likely to output the V2 header.
I haven't read the the OCR'd kernel source fully yet; in the section for
exec(), there must be code to parse an a.out header. Does it only know
about 0405, or 0407, or both?
Hope this helps,
Warren
>
> I believe the V7 headers are 16 bytes and the text section starts at zero.
> (heh, memory management)
>
> The v1 headers are 12 bytes and the text section starts at 014 (i.e. the
> header is part of the text section and *it* begins at zero, not the code)
>
> So, if we assemble with the v7 as we need to adjust things a bit.
>
> -brad
> _______________________________________________
> Unix-jun72 mailing list
> Unix-jun72 at minnie.tuhs.org
> https://minnie.tuhs.org/mailman/listinfo/unix-jun72
next prev parent reply other threads:[~2008-05-01 22:23 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-01 16:09 [Unix-jun72] more corrections Brad Parker
2008-05-01 17:03 ` Tim Newsham
2008-05-01 17:10 ` Al Kossow
2008-05-01 17:19 ` Brad Parker
2008-05-01 17:10 ` Tim Newsham
2008-05-01 17:22 ` Brad Parker
[not found] ` <Pine.BSI.4.64.0805010726040.20990@malasada.lava.net>
2008-05-01 17:47 ` Brad Parker
2008-05-01 17:54 ` Tim Newsham
2008-05-01 18:15 ` Tim Newsham
2008-05-01 18:21 ` Tim Newsham
2008-05-01 18:34 ` Tim Newsham
2008-05-01 22:51 ` Warren Toomey
2008-05-01 23:31 ` Tim Newsham
2008-05-01 19:02 ` John Cowan
2008-05-01 21:18 ` [Unix-jun72] 11/20 handbook Al Kossow
2008-05-01 23:09 ` Hellwig Geisse
2008-05-01 22:23 ` Warren Toomey [this message]
2008-05-01 22:28 ` [Unix-jun72] Early a.out headers Warren Toomey
2008-05-01 23:01 ` Al Kossow
[not found] ` <Pine.BSI.4.64.0805011927100.20114@malasada.lava.net>
2008-05-02 10:24 ` [Unix-jun72] more corrections Brad Parker
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=20080501222355.GA75266@minnie.tuhs.org \
--to=wkt@tuhs.org \
/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 NNTP newsgroup(s).