D35352: [ELF] - Implement filter library support (-F / --filter)

Ed Maste via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 13 07:07:23 PDT 2017


On 13 July 2017 at 09:53, George Rimar <grimar at accesssoftek.com> wrote:
>> I believe `-F` / `--filter` can be used multiple times, as with `-f`.
>
> I think that is true for -f/--auxilary only.
>
> LD manual says that: "This option may be specified more than once. The DT_AUXILIARY entries will be created in the order in which they appear on the command line."
> https://www.freebsd.org/cgi/man.cgi?ld(1)
>
> But it does not say anything about multiple use of '-F/--filter'.
>
> And both gold/bfd use only last library passed via -F:
> ld.bfd -F aa -shared -F dd x.o
> readelf -a a.out

I think this is a bug in GNU ld. The Solaris linker and library guide
suggests multiple filtees are allowed: "The /usr/lib/libxnet.so.1
filter uses multiple filtees. This library provides socket and XTI
interfaces from /usr/lib/libsocket.so.1, /usr/lib/libnsl.so.1, and
/usr/lib/libc.so.1."


More information about the llvm-commits mailing list