As you mentioned, gcc merely acts as a front-end to ld at link time; it passes all the linker directives (options, default/system libraries, etc..), and makes sure everything fits together nicely by taking care of all these toolchain-specific details for you.
I believe it's best to consider the GNU toolchain as a whole, tightly integrated environment (as anyone with an experience of building toolchains for some exotic embedded platforms with, say, dietlibc integration will probably agree).
Unless you have some very specific platform integration requirements, or have reasons not to use gcc, I can hardly think of any advantage of invoking ld
directly for linking. Any extra linker-specific option you may require could easily be specified with the -Wl,
prefix on the gcc command line (if not already available as a plain gcc option).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…