• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Dwarf and comparing binaries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dwarf and comparing binaries


  • Subject: Dwarf and comparing binaries
  • From: Jonas Maebe <email@hidden>
  • Date: Sat, 24 Nov 2007 17:27:07 +0100

Hello,

It seems that every time you compile a binary with Dwarf debug info, it ends up being slightly different. I guess the linker includes some time stamps of the object files or some such in the final binary. Is there a way to avoid this? Running dsymutil doesn't help.

The reason I'm asking is that when compiling our compiler, it compiles itself up to a maximum of three times and if the generated binaries then still don't match, the makefile assumes there's an insidious code generator error somewhere (insidious because the compiler didn't crash, yet still generated different code every time).

The result is that it is currently impossible to compile our compiler and all packaged units with dwarf info under Mac OS X, as the makefile will fail during that process. It's of course possible to manually compile everything separately, but that's quite annoying.

FWIW: everything works fine with stabs, and also with dwarf on other platforms (but there the linker simply embeds the dwarf debug info in the binary rather than keeping it in separate object file).


Jonas _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Dwarf and comparing binaries
      • From: Peter O'Gorman <email@hidden>
  • Prev by Date: PackageMaker home directrory installers for pre 10.5 systems
  • Next by Date: Re: C file in Xcode C++ project -- (partially) solved
  • Previous by thread: Re: PackageMaker home directrory installers for pre 10.5 systems
  • Next by thread: Re: Dwarf and comparing binaries
  • Index(es):
    • Date
    • Thread