Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!viewlog.viewlogic.com!greg From: greg@suntan.viewlogic.com (Gregory Larkin) Newsgroups: comp.os.minix Subject: Please help! Can't get ast(1) to work Message-ID: <1991May22.163457.10302@viewlogic.com> Date: 22 May 91 16:34:57 GMT Sender: news@viewlogic.com Organization: Viewlogic Systems, Inc., Marlboro, MA Lines: 43 Originator: greg@mobius Nntp-Posting-Host: mobius 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)