public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Ignoring some undefined symbols
@ 2010-02-10  9:56 Mathieu Ropert
  2010-02-11  2:36 ` Ian Lance Taylor
  0 siblings, 1 reply; 4+ messages in thread
From: Mathieu Ropert @ 2010-02-10  9:56 UTC (permalink / raw)
  To: binutils

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Ignoring some undefined symbols
  2010-02-10  9:56 Ignoring some undefined symbols Mathieu Ropert
@ 2010-02-11  2:36 ` Ian Lance Taylor
  2010-02-11 15:00   ` Mathieu Ropert
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Lance Taylor @ 2010-02-11  2:36 UTC (permalink / raw)
  To: Mathieu Ropert; +Cc: binutils

Mathieu Ropert <sagara@puchiko.net> writes:

> 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?

As far as I know the GNU linker has no such feature.  Sorry.

Ian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Ignoring some undefined symbols
  2010-02-11  2:36 ` Ian Lance Taylor
@ 2010-02-11 15:00   ` Mathieu Ropert
  2010-02-11 21:53     ` Mike Frysinger
  0 siblings, 1 reply; 4+ messages in thread
From: Mathieu Ropert @ 2010-02-11 15:00 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: binutils

That's too bad, we really liked this feature when building librairies
for runtime loading (like Apache modules for instance).
Would you guys be interested in a patch that implements this feature in LD?

Mathieu

On Thu, Feb 11, 2010 at 3:35 AM, Ian Lance Taylor <iant@google.com> wrote:
> Mathieu Ropert <sagara@puchiko.net> writes:
>
>> 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?
>
> As far as I know the GNU linker has no such feature.  Sorry.
>
> Ian
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Ignoring some undefined symbols
  2010-02-11 15:00   ` Mathieu Ropert
@ 2010-02-11 21:53     ` Mike Frysinger
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2010-02-11 21:53 UTC (permalink / raw)
  To: binutils; +Cc: Mathieu Ropert, Ian Lance Taylor

[-- Attachment #1: Type: Text/Plain, Size: 445 bytes --]

On Thursday 11 February 2010 09:59:59 Mathieu Ropert wrote:

please dont top post

> That's too bad, we really liked this feature when building librairies
> for runtime loading (like Apache modules for instance).
> Would you guys be interested in a patch that implements this feature in LD?

i dont see why not.  i might have used this once or twice in the past myself 
(undefined "environ" in *BSD environments comes to mind).
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-02-11 21:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-10  9:56 Ignoring some undefined symbols Mathieu Ropert
2010-02-11  2:36 ` Ian Lance Taylor
2010-02-11 15:00   ` Mathieu Ropert
2010-02-11 21:53     ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).