Debugging ld

Philip Blundell philb@gnu.org
Sun Aug 26 02:20:00 GMT 2001


>I am after a bit of advice. What is the best way to debug ld when building a
>dll using gcc -shared........  I have a test case that does not do the right
>thing
>in linking but I cannot get gdb to trace it through the build process. Its
>gcc
>calling ld that seems to be causing me trouble.

Use "gcc -v" to see what arguments are being passed to ld.  Then run ld under 
the debugger with the same parameters.

p.

-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.5 (GNU/Linux)
Comment: Exmh version 2.1.1 10/15/1999 (debian)

iD8DBQE7iL9XVTLPJe9CT30RAh2kAJ9f1el//SY8e6KT9LdKIAHRiYEXRACgm9n7
Rd/HXQeAuq3N8KhOvVbjsXc=
=fTwl
-----END PGP SIGNATURE-----


More information about the Binutils mailing list