home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cbmvax!bagate!dsinc!spool.mu.edu!darwin.sura.net!gatech!concert!sas!mozart.unx.sas.com!wonka.unx.sas.com!sassek
- From: sassek@wonka.unx.sas.com (Steve Krueger)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Unwanted SAS/C symbol hunks
- Message-ID: <C1InGA.EE5@unx.sas.com>
- Date: 27 Jan 93 14:12:09 GMT
- References: <zp20aNqDOc@darkness.gun.de>
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Organization: SAS Institute Inc.
- Lines: 51
- Nntp-Posting-Host: wonka.unx.sas.com
-
- In article <zp20aNqDOc@darkness.gun.de> rseichter@darkness.gun.de (Ralph Seichter) writes:
- >I have a problem with an executable generated by SAS/C 6.1. The file seems
- >to include symbol hunks which I definitely don't want to be there. The
- >"PowerPacker" tells me it removes three hunks, and I think PP knows what it
- >does. I assume that the symbol hunks generated are for functions of the
- >amiga.lib like "OpenScreenTags" and some other vararg stubs (I use register
- >parameters).
- >
- >Here are my SCOPTIONS:
- >
- > CPU=68030
- > PARAMETERS=REGISTERS
- > NOSTACKCHECK
- > UNSIGNEDCHARS
- > NOSTANDARDIO
- > COMMENTNEST
- > ERRORREXX
- > NOMULTIPLEINCLUDES
- > NOOPTIMIZE
- > NOICONS
- > NOERRORHIGHLIGHT
- > GLOBALSYMBOLTABLE=z.gst
- > GSTIMMediate
- >
- >And here's how I link the object modules (part of my SMAKEFILE):
- >
- > LNKFLGS = NOADDSYM DEFINE ___main=___tinymain
- > LIB = lib:sc.lib lib:amiga.lib
- > OBJECTS = [...]
- >
- > slink FROM lib:c.o $(OBJECTS) TO z LIB $(LIB) $(LNKFLGS)
- >
- >Do you have any idea why there are symbol hunks although I explicitly
- >specify the NOADDSYM keyword for SLink? I surely don't like anything
- >included in an executable which doesn't _have_ to be there. :(
- >
- >Please help!
- >
-
- You can use dumpobj (included in SAS/C 6.x) to see all the hunks in
- the executable. You can also tell slink to strip any symbol hunks
- with the STRIPDEBUG option (or NODEBUG option to slink). ADDSYM
- tell slink to generate SYMBOL hunks if the object modules don't
- have them. SLINK does not have a NOADDSYM option. Then only reason
- you didn't get an error, is because you specified NOADDSYM after the
- LIB keyword, and slink thought you were specifying a library. All the
- symbols were resolved before it got to that library, so it never had to
- look for the library called NOADDSYM.
-
-
- > MfG, Ralph
-