On Thu, Feb 25, 2021 at 5:26 PM Gary Oblock via Gcc <gcc@gcc.gnu.org> wrote:
>
> I've got collect2 finding a linker error and I'm out of
> other options so I'm poking around in the collect2
> sources. I'm wondering what pex_run is (since it's
> getting handed the arguments this might mater?)
> I figure if I can get collect2 to spill its guts
> about what arguments are fed to "ld" I'll have
> at least a chance figuring out what in the bleep
> is going on... alternate debugging strategies
> are welcome.

collect2 will dump out a lot of extra information and save temporary
files if passed "-debug" option to collect2 (not to GCC).  In other
words

$ gcc -Wl,-debug -o foo foo.o

Thanks, David

Reply via email to