"H.J. Lu" <hjl.to...@gmail.com> writes: > We don't want to put all unclaimed files passed to plugin back to linker. > On Linux, > > [...@gnu-6 gcc-lto]$ cat /usr/lib/libc.so > /* GNU ld script > Use the shared library, but some functions are only in > the static library, so try that secondarily. */ > OUTPUT_FORMAT(elf32-i386) > GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( > /lib/ld-linux.so.2 ) ) > [...@gnu-6 gcc-lto]$ > > Linker should use /usr/lib/libc.so, not /lib/libc.so.6, > /usr/lib/libc_nonshared.a, > /lib/ld-linux.so.2, for final linker. With the new cmdline field, > plugin can only pass > those unclaimed files from linker command line back to linker for the > final link.
Thanks, at least now I understand what the new field means: it is true for a file explicitly named on the command line, false for a file named in a linker script. Are you planning to have the plugin claim all files, even linker scripts, and then pass only the command line files back to the linker? Ian