• 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: Dead Code Stripping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dead Code Stripping


  • Subject: Re: Dead Code Stripping
  • From: Jonas Maebe <email@hidden>
  • Date: Tue, 19 Sep 2006 15:55:16 +0200


On 19 sep 2006, at 15:49, Scott Thompson wrote:

In the past, I've used linkers which have the ability to generate a "link map". Among the things listed in the link map is the identity of files and routines that are compiled, then discarded during dead code stripping. Can the ld linker generate such a report?

man ld

...

-M (32-bit only)
Produce a load map, listing all the segments and sections. The
list includes the address where each input file's section
appears in the output file, as well as the section's size.


This option overlaps with a compiler option. If you use the
compiler driver cc(1) to invoke ld, invoke this option in this
way: -Wl,-M.


The link/load map is written to standard error.

I don't know why this is 32-bit only. Then again, -dead_strip is also 32-bit only according to the man page. Does anyone know whether this means that "-dead_strip" is always active on 64 bit, or that it's not (currently) supported on 64 bit?


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
References: 
 >Dead Code Stripping (From: Scott Thompson <email@hidden>)

  • Prev by Date: Dead Code Stripping
  • Next by Date: Re: Re: Hiding "cast from pointer to integer of different size" warning
  • Previous by thread: Dead Code Stripping
  • Next by thread: Regarding atos and arch
  • Index(es):
    • Date
    • Thread