Author Topic: The mach-o patch  (Read 8062 times)

nobody

  • Guest
The mach-o patch
« on: January 25, 2005, 03:39:08 AM »
I saw mention of a mach-o patch for nasm in the
mailing list section of this site
is there a way to download it?

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: The mach-o patch
« Reply #1 on: January 25, 2005, 05:06:47 AM »
Okay... I have attempted to add this to the "contributions" section on the "download" page... but can't get it to "go" at the moment... So:





(hope the "wrap" doesn't screw those up - you can figure it out...)

I think the "-2" version is (one day?) newer. Note that this patch is against an earlier version of Nasm than current. Here's hpa's advice on how to "rescue" a patch...

-------------------------
Also, note that I did run Nindent on the source before the release, so
that any new patches people produce will have the new formatting.  There
are two tags in the tree:

before-reformat-2005-01
   after-reformat-2005-01

... taken immediately before and after the indent.

If you have patches based on the old source, this is how to rescue them:

-> Check out one tree with cvs [blah] co -r before-reformat-2005-01 nasm
-> Check out one tree with cvs [blah] co -r after-reformat-2005-01 nasm
-> Apply your patches to the first tree.
-> COPY any modified files from the first tree to the second tree.
-> Run Nindent on the modified files.
-> Now you can "cvs update -d" in the second tree to bring it forward to
    current time.
---------------------------------

If this is for your private use, it may not be neccessary to go through all this. If you think that "macho" ought to be actually added to Nasm, give us a hand with an "updated" patch, if you're able...

I'm delighted that Michael Weiser's (hope I've remembered that correctly) contribution is useful to someone. I'd be happy to discuss this further - here or on the nasm-devel list or privately, if you have/need anything further on the subject...

Best,
Frank

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: The mach-o patch
« Reply #2 on: January 25, 2005, 05:10:20 AM »
Guess I screwed up... only the "-2" version of the above links seems to be working... should suffice...

Best,
Frank

David Viens

  • Guest
Re: The mach-o patch
« Reply #3 on: June 24, 2005, 08:19:19 PM »
Hello

As you may have guessed, this thread would come back soon enough with the arrivals of Apple (Darwin/x86) Macintosh Dev transition kits arriving at the doorsteps of developers.  We've  just received ours, and compiled NASM 0.98.39 without a hitch, that said, I soon realised the apple GCC 4.0 only seem to use mach-o, so i will try to run this patch when i have a chance. (i really dont want to have inline AT&T stuff in my projects :).

Idd like to know if anyone has had a chance to look into outmacho.c more recently that im not aware of from google/SF search, that would mean a lot to us.

Thanx a lot NASM is really great.

David. Plogue art et technologie, Inc.