[comp.os.minix] Please help! Can't get ast

greg@suntan.viewlogic.com (Gregory Larkin) (05/22/91)

Hi there,

My environment: 1.5.10PC-Minix, Estdio library, and
                2 virtual consoles on a '286 with
                640K.

I've been trying like crazy to get a symbol table 
added to my executables.  I'd like to use ps(1) on
my system and the namelist is required on kernel,
fs, and mm.  I can't get any of those to work, so
I tried a small test case on /usr/src/command/cal.c

Here's what I typed:

# cc -s -i -c -D_MINIX -D_POSIX_SOURCE cal.c
a.out: no executable file
# cc -s -i -o cal cal.s > symbol.out
# ast -X cal
# file cal
cal: MINIX/PC executable  separate I & D space  stripped


Why is cal stripped??  If I added the symbol.out to it,
shouldn't it be "not stripped"?  I've tried this many times,
so I must be going crazy.  I've been able to get this to
work before, so something must have changed.

Can anyone recommend the correct flags to specify to cc(1),
if I have not done so to get a non-stripped executable?

Also, ast(1) seems to increase the size of the executable
if I repeatedly invoke it, but file(1) never reports the
correct thing.  Also, strip(1) fails to make the executable
any smaller and nm(1) reports no name list!!

Any help greatly(!) appreciated!
-- 
Greg Larkin (ASIC Engineer)|"This is a fragile ball we are living on; 
Viewlogic Systems, Inc.    |it's a miracle and we are destroying it.."
293 Boston Post Road West  |Peter Garrett, Midnight Oil               
Marlboro, MA 01752  (greg@Viewlogic.COM)