• 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: .subsections_via_symbols broken in Xcode 2.4?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .subsections_via_symbols broken in Xcode 2.4?


  • Subject: Re: .subsections_via_symbols broken in Xcode 2.4?
  • From: Shantonu Sen <email@hidden>
  • Date: Thu, 31 Aug 2006 11:12:23 -0700

Sounds like you are talking about dead code stripping, which is not and has never been the default. Pass -dead_strip to the compiler driver or linker.

-gfull is for debugging symbols, and does not affect this behavior.

Shantonu

On Aug 31, 2006, at 9:28 AM, Jonas Maebe wrote:

Hello,

It seems smart linking is no longer working in Xcode 2.4? The test2 routine at least isn't stripped from the following test program:

***
#include <stdio.h>

void test() {
  printf("hello\n");
}

void test2() {
  printf("goodbye\n");
}

int main() {
  test();
  return 0;
}
***

The generated assembler file does contain the .subsections_via_symbols statement. But after assembling and linking, the generated binary still contains the full test2() routine (verified with "otool -tV"). Adding -gfull to gcc's command line options doesn't change anything.


Jonas

PS: it seems the Xcode 2.4 sources haven't been posted yet?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40opendarwin.org


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >.subsections_via_symbols broken in Xcode 2.4? (From: Jonas Maebe <email@hidden>)

  • Prev by Date: .subsections_via_symbols broken in Xcode 2.4?
  • Next by Date: How can I find out what predefined symbols the compiler is using?
  • Previous by thread: .subsections_via_symbols broken in Xcode 2.4?
  • Next by thread: How can I find out what predefined symbols the compiler is using?
  • Index(es):
    • Date
    • Thread