• 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
strip -R not working on GCC 4 generated binaries?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strip -R not working on GCC 4 generated binaries?


  • Subject: strip -R not working on GCC 4 generated binaries?
  • From: Jim Correia <email@hidden>
  • Date: Sat, 21 May 2005 08:38:06 -0400

I'm using a shell script phase with strip -R to remove selected symbol names from the output. This has stopped working with GCC 4.

If I build a sample command line tool project which builds the source

#include <stdio.h>

void    Foo()
{
    printf("this is Foo\n");
}

void    Bar()
{
    printf("this is Bar\n");
}

int main (int argc, const char * argv[])
{
    printf("Hello, World!\n");
    Foo();
    Bar();

    return 0;
}


and then run strip -R symbols_to_strip.txt StripTest, it reports

strip: symbols names listed in: /Users/correia/Desktop/StripTest/ symbols_to_strip.txt not in: /Users/correia/tmp/build/StripTest
_Bar
_Foo


Changing nothing other than the compiler, back to GCC 3.3 makes things work again. Has something changed in GCC 4 that I need to account for? (I have tried all the different levels of generating debug symbols.)

Is this a bug? I'm happy to write it up with samples for radar. Workarounds?

Thanks,
Jim
_______________________________________________
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: strip -R not working on GCC 4 generated binaries?
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Compile errors aren't so good
  • Next by Date: Re: How does the SDK selection affect my compiler settings?
  • Previous by thread: Re: debugging with Crash Reporter
  • Next by thread: Re: strip -R not working on GCC 4 generated binaries?
  • Index(es):
    • Date
    • Thread