gcc links to libcmain when generating a dll

Brian Inglis Brian.Inglis@SystematicSW.ab.ca
Mon May 26 19:45:07 GMT 2025


On 2025-05-26 12:27, Arthur Schwarz wrote:
> Hi Brian;
> 
> I'm trying to track down the gcc linker (ld) manual. Any idea where I can find it?

	$ cygcheck -f /usr/bin/ld
	binutils-2.44-1

	https://cygwin.com/packages/summary/binutils-src.html

	https://www.gnu.org/software/binutils/

	https://savannah.gnu.org/projects/binutils/

	https://sourceware.org/binutils/

	https://sourceware.org/binutils/docs/

	https://sourceware.org/binutils/docs/ld.pdf

	https://sourceware.org/binutils/docs/ld.html		# single page

	https://sourceware.org/binutils/docs/ld/index.html	# multiple pages

> I've looked at the gcc site (gcc.gnu.org/onlinedocs/) and it's not there. I did 
> a google search and found a 1998 linker manual. I looked at the local cygwin (/ 
> usr/share/doc) and there's no ld.

Install binutils and then you can use:

	$ info ld

	$ man ld

> You sent me the solution to my linking issue (thanks), but I find that the 
> libslip.dll.a seems woefully undernourished. My cygslip.dll is 55980 bytes, my 
> libslip.dll.a is 2266 bytes. I would argue that my cygslip.dll seems too low 
> (will find out more when I try to link it to an executable) but the 
> libslip.dll.a seems wholly inadequate. I was hoping to use the linker manuals to 
> try to find out what's going on, but I can't find the manuals.

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry


More information about the Cygwin mailing list