🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #59176

Re: A.out binaries don't page 4K pages

#59176
From: Paul Gortmaker
Date: Fri, 23 Feb 1996 00:00
45 lines
2302 bytes
johns@rd.scitec.com.au (John Saunders) writes:

>After seeing the benefits of 4K byte filesystem pages plastered all over
>the place, I decided I wanted more speed. However after playing towers of
>hanoi with the data on my partitions, I finally got 4K byte pages only

Hee. Time to buy a tape drive.  :-)

>to find my a.out programs (abuse, Doom, netscape) don't work anymore. If
>I had a complete a.out system, rather than ELF, I would be stuck up the
>proverbial creek without the proverbial paddle. I hate booting floppies.

>When I run an a.out program, it says something about TEXT_O < PAGESIZE
>and that I need to convert my binary. Has anybody done this before? Should
>I make a 10 Meg filesystem just for a.out programs with 1024 byte blocks?

Ugh. Ugly solution.

>I tried making Doom into an ELF binary but it just coredumps, I didn't
>really think that it would work but ld thought it could.

One solution is to convert the NMAGIC to an OMAGIC binary. I am not sure
if this is what the "Please convert binary." means to do. Perhaps you
can play games with the "-Ttext" flag to ld. Anyway this works, and you
should be able to play doom again on your 4kB ext2fs.

-----------------------------------------------
gromit:/mnt# cp -av /bin/date .
/bin/date -> ./date
gromit:/mnt# ./date
N_TXTOFF < BLOCK_SIZE. Please convert binary.
./date: Exec format error. Wrong Architecture.
gromit:/mnt# ld -s -N ./date -o date-omagic
gromit:/mnt# ./date-omagic
Fri Feb 23 10:39:41 EST 1996
gromit:/mnt# file ./date*
./date:        Linux/i386 demand paged executable
./date-omagic: Linux/i386 executable
gromit:/mnt# ls -l date*
-rwxr-xr-x   1 root     root        25604 Feb 15  1994 date*
-rwx------   1 root     root        24620 Feb 23 10:39 date-omagic*
gromit:/mnt# 
-----------------------------------------------

Paul.
Technical Details
Message-ID: <4givts$1ho@leonard.anu.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4gh5ke$ji@mailhub.scitec.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,fb7ee3a36fccf4bf
X-Google-Attributes: gid102983,public
From: gpg109@leonard.anu.edu.au (Paul Gortmaker)
Subject: Re: A.out binaries don't page 4K pages
Date: 1996/02/23
Message-ID: <4givts$1ho@leonard.anu.edu.au>
X-Deja-AN: 140625635
references: <4gh5ke$ji@mailhub.scitec.com.au>
organization: Australian National University
newsgroups: aus.computers.linux