------- Comment #5 from hjl dot tools at gmail dot com 2008-03-31 18:16 ------- (In reply to comment #4) > Patch seems fine, but before approving it I would like a description of why > "tries to [...] relink itself" (important part is *re*link itself), and that > description should also go in exec-tool.in. >
I am not a libtool person. My best understanding is when shared library is enabled, libtool will create a shell script, ld-new, and the real executable as .libs/ld-new. But .libs/ld-new isn't suitable to be used in place directly. When the ld-new shell script is run the first time, it will relink a new real linker, .libs/lt-ld-new, and use .libs/lt-ld-new instead of .libs/ld-new. I hope libtool person can provide a real explanation in exec-tool.in. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35752