Message-Id: <199605170939.FAA15940@delorie.com> Date: Fri, 17 May 96 12:25:22 LIT From: Martynas Kunigelis Subject: Re: Unused functions To: "A.Appleyard" , DJGPP mailing list In-Reply-To: Your message of Thu, 16 May 1996 14:49:24 GMT > A.Appleyard wrote wanting djgpp's linker to be able to say which entry >points are (1) only used within the same file, so he can declare them >`static', (2) not used at all, so he can delete them. ... > `Wanting' is a nice word. I personally want Windows and OS/2 to provide DPMI 1.0 services. BTW, you misunderstand the concept of DPMI. You are always a slave to the OS you're running under. THERE IS NO WAY TO SUPPRESS THE DPMI THAT OS GIVES YOU. Now the linker: a mapped link should solve most of your problems. Not sure about the switches, but something like this should do: gcc -Xlinker -Map ... To be sure, check ld docs and gcc docs on passing options to ld. Martynas