[lkml]   [2009]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] basic perf support for sparc

* Kyle McMartin <> wrote:

> On Sun, Aug 02, 2009 at 08:41:48PM +0200, Ingo Molnar wrote:
> > Could we somehow define a weak symbol for those library functions
> > ourselves and thus just fall back to that (which does nothing)
> > instead of failing the link?
> >
> Well, you could just dlopen the object, but that's kind of
> gross...

hm, why is it gross? I think it's a nicely plug-and-play tooling
solution - instead of some obscure make flag.

Since we define the prototype anyway:

> +static inline char *bfd_demangle(void __used *v, const char __used *c,
> + int __used i) {
> + return NULL;
> +}

We are sticking to a given version of the API. We could turn that
into a function pointer and fill it in during startup via dlopen().
If it's NULL then we dont call it and assume a value of NULL.

Mind submitting such a version of your fix? It would nicely decrease
the build requirements cross section surface of perf.


 \ /
  Last update: 2009-08-02 21:53    [W:0.059 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site