This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Ignoring some undefined symbols
- From: Mathieu Ropert <sagara at puchiko dot net>
- To: binutils at sourceware dot org
- Date: Wed, 10 Feb 2010 10:55:55 +0100
- Subject: Ignoring some undefined symbols
Hello,
I'm currently porting an application from Tru64 / OSF to Linux and I'm
looking for a feature I had with Tru64's LD that I can't find in
binutils.
When building a shared library, I want LD to report undefined symbols
in object files BUT I need to ignore some undefined symbols.
On Tru64, there's the -expect_unresolved flag that takes a symbol name
pattern (like shell filename expansion) and ignore them when reporting
undefined symbols.
With binutils' LD, I use the --no-undefined to have undefined symbols
checked when building shared libraries, but I still need to make it
ignore some undefined references (full names or patterns, both can
do).
Is there any way to do it?
Regards,
Mathieu Ropert