• 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
Re: -gfull + dead cod stripping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -gfull + dead cod stripping


  • Subject: Re: -gfull + dead cod stripping
  • From: Lionel <email@hidden>
  • Date: Tue, 17 Aug 2004 23:16:20 +0200

When i compile with -gfull and -deadstrip passed to the linker, i get this error :
ld: internal error: assign_output_symbol_indexes() inconsistent local symbol counts
Could someone tell me what i must or could change to avoid this ? Without -deadstrip, i don't have this error, but the code is not stripped of course 


Thanks,
Lionel

Le 16 ao{t 2004, ` 20:27, Marc Poirier a icrit :

I was just reading:

http://developer.apple.com/documentation/DeveloperTools/Conceptual/ Build_System/Dead_Code_Stripping/DeadCodeStripping.html

which says:

You must recompile all object files using the compiler included with Xcode 1.5 before dead-code stripping can be performed by the linker. You must also compile the object files with the -gfull option to ensure that the resulting binaries can be properly debugged. In Xcode, add the -gfull option to the Other C Flags build setting of your target.

Note: The GCC compilers -g option normally defaults to -gused, which reduces the size of .o files at the expense of symbol information. Although the -gfull option does create larger .o files, it often leads to smaller executable files, even without dead-code stripping enabled.


So does that mean that I should use -gfull even on Deployment builds, or only on Development (debug) builds?



Oh and also, right before that, it says: "In Xcode, use the Dead Code Stripping and Dont Dead-Strip Inits and Terms build settings, respectively." Does that mean that I would only use the "Inits And Terms" setting if I already have "Dead Code Stripping" enabled, or does it mean that if I use one I always have to use the other, otherwise things won't work right?



thanks,
Marc
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >-gfull + dead cod stripping (From: Marc Poirier <email@hidden>)

  • Prev by Date: distributed building machines not on subnet
  • Next by Date: Re: /usr/bin/cvs overwritten by Xcode 1.5 installer with outdated version
  • Previous by thread: Re: -gfull + dead cod stripping
  • Next by thread: Re: -gfull + dead cod stripping
  • Index(es):
    • Date
    • Thread