[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pcc-list
Subject:    Error using binutils strip(1)
From:       Eric Radman <ericshane () eradman ! com>
Date:       2010-02-04 13:27:40
Message-ID: 20100204132740.GE16201 () SDF ! LONESTAR ! ORG
[Download RAW message or body]

Greetings,

I found that strip -N fails when using it to remove a single symbol from
the object code generated by pcc:

$ strip -N main sut.o -o _sut.o 
BFD: _sut.o: symbol `main' required but not present
strip: _sut.o: No symbols

#GCC 3.3.5
$ nm sut.o 
         U __stack_smash_handler
         U __guard
         U atoi
         U printf
00000000 T square
00000000 F sut.c
0000000b T main

#pcc 0.9.9
$ nm sut.o
         U atoi
00000010 T main
         U printf
00000000 T square

Is this because binutils is fragile?

Regards,
  Eric Radman
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic