Mac OS 9 Lives

Mac OS 9 Discussion => Development & Programming => Topic started by: meow_mx on February 19, 2024, 02:41:08 PM

Title: PEF Explorer - does anyone still have it?
Post by: meow_mx on February 19, 2024, 02:41:08 PM
I'm fussing a bit with later (R200-compatible) ATI drivers on System 7.6.1, and the primary obstacle seems to be that the ATI Resource Manger 3.0.8+ for those cards fails to resolve some important symbol at load time.

It looks like PEF Explorer would be a good help in understanding what the 3.0.8+ versions of ATI Resource Manager want that 3.0.5 doesn't. I've seen the tool referenced in a few old posts but no luck at all finding a copy of it.

Anybody got it?
Title: Re: PEF Explorer - does anyone still have it?
Post by: joevt on February 19, 2024, 03:27:54 PM
I don't think I have PEF Explorer.

You could use the DumpPEF command from MPW.

You can run MPW on modern macOS using https://github.com/ksherlock/mpw

I have ATI Resource Manager 2.7.3, 3.1.4, 3.2, and 3.2.1 on my hackintosh. I've attached some dumps.
Title: Re: PEF Explorer - does anyone still have it?
Post by: ssp3 on February 19, 2024, 03:33:55 PM
Ahem.. what about IDA?  ;)
Title: Re: PEF Explorer - does anyone still have it?
Post by: IIO on February 19, 2024, 04:15:36 PM
searched it, but it is not in my archives either.
 
 
https://www.ghidra-sre.org/

https://github.com/DBJ314/dePEF-and-disasm by @Daniel
Title: Re: PEF Explorer - does anyone still have it?
Post by: meow_mx on February 19, 2024, 07:55:59 PM
I read the docs for the PEF container, and realized I could "parse" the import lists for a given fragment by eyeballing it in a hex dump and doing a bunch of regular expression surgery in vi :-D
Title: Re: PEF Explorer - does anyone still have it?
Post by: meow_mx on February 19, 2024, 08:15:13 PM
I don't think I have PEF Explorer.

You could use the DumpPEF command from MPW.

You can run MPW on modern macOS using https://github.com/ksherlock/mpw

I have ATI Resource Manager 2.7.3, 3.1.4, 3.2, and 3.2.1 on my hackintosh. I've attached some dumps.

Thanks, the next thing I was wondering about was if any of the imports have version specifications... which none of these have in any meaningful way.

And know I know that DumpPEF is awesome, and it looks like I'm probably going to be installing MPW again for the first time in 20 years pretty soon!
Title: Re: PEF Explorer - does anyone still have it?
Post by: Jubadub on February 20, 2024, 08:04:38 AM
This is the first time I hear of "PEF Explorer". I see we don't have it in the Garden at all, so we will want to keep an eye out for it, and archive it there.
Title: Re: PEF Explorer - does anyone still have it?
Post by: ssp3 on April 27, 2024, 03:56:33 AM
It just occured to me that maybe meow_mx ment PEF Viewer and not PEF Explorer?

If so, there are two versions - one for OS9 and another one for OSX.
The OS9 version I don't remember where I got it from, the OSX version is part of early XCode tools.
The OS9 version works standalone as is. The OSX version installs additional Powerplant framework into System -> Private frameworks.
I hate when something from the old system is installed into newer system, so I made my own standalone version of it by moving the Powerplant framework inside the PEF Viewer app and patching both executables with install_name_tool. Tested and working on Intel with Rosetta and on PPC Leopard.
If someone needs these, I can put them up.
Title: Re: PEF Explorer - does anyone still have it?
Post by: IIO on April 27, 2024, 05:22:42 AM
It just occured to me that maybe meow_mx ment PEF Viewer and not PEF Explorer?

that would explain why google and archive-org do not know anything about it.

hehe, thereĀ“s a document on HI which mentions it. :)

https://cdn.preterhuman.net/texts/computing/macintosh/PPC_Cracking_Bible_v1.0.2.pdf

so it is a disassembler but you can not edit and save?
Title: Re: PEF Explorer - does anyone still have it?
Post by: ssp3 on April 27, 2024, 05:38:22 AM
so it is a disassembler but you can not edit and save?

It is a bit more than that. For example, it told me that our beloved ATI driver for Mac Mini is screwed and its data fork is corrupt. Sloppy hackers  ;)
It shows nicely exports and imports and some other parts that IDA knows nothing about, but as PPC disassembler as such it sucks.
Title: Re: PEF Explorer - does anyone still have it?
Post by: Jubadub on April 29, 2024, 04:03:27 AM
Garden also seem to lack "PEF Viewer". Is there somewhere we can still find it?
Title: Re: PEF Explorer - does anyone still have it?
Post by: Windoze on April 29, 2024, 04:16:57 AM
It's included on the Apple Developer Connection CDs.

Make sure to look at the "Tool Chest" CD.
https://macintoshgarden.org/apps/apple-developer-connection-2001 (https://macintoshgarden.org/apps/apple-developer-connection-2001)
Title: Re: PEF Explorer - does anyone still have it?
Post by: Jubadub on April 29, 2024, 04:17:59 AM
It's included on the Apple Developer Connection CDs.

Make sure to look at the "Tool Chest" CD.
https://macintoshgarden.org/apps/apple-developer-connection-2001 (https://macintoshgarden.org/apps/apple-developer-connection-2001)

Thank you! :)
Title: Re: PEF Explorer - does anyone still have it?
Post by: GuiBer on April 30, 2024, 12:47:27 AM
PEF Viewer 1.0d5 and 1.0d8 available here :
https://www.mediafire.com/file/xnyxwrjl1bhy8f8/PEF_Viewer.zip/file