From: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
To: Josh Boyer <jwboyer-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org
Subject: Re: [PATCH 1/2] libfdt: Add version.lds file
Date: Wed, 26 Nov 2008 12:47:53 +1100 [thread overview]
Message-ID: <20081126014753.GF3420@yookeroo.seuss> (raw)
In-Reply-To: <20081125171648.GC17258-JVa43G0qJ78RlTYtMZUE4cJ8OCA1ciLf@public.gmane.org>
On Tue, Nov 25, 2008 at 12:16:48PM -0500, Josh Boyer wrote:
> On Tue, Nov 25, 2008 at 11:57:47AM -0500, Josh Boyer wrote:
> >On Tue, Nov 25, 2008 at 10:50:32AM -0600, Jon Loeliger wrote:
> >>> Add the initial symbol versioning file as groundwork for creating
> >>> a libfdt shared library
> >>>
> >>> Signed-off-by: Josh Boyer <jwboyer-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
> >>> ---
> >>> libfdt/version.lds | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
> >>> 1 files changed, 48 insertions(+), 0 deletions(-)
> >>> create mode 100644 libfdt/version.lds
> >>>
> >>> diff --git a/libfdt/version.lds b/libfdt/version.lds
> >>> new file mode 100644
> >>> index 0000000..7d90672
> >>> --- /dev/null
> >>> +++ b/libfdt/version.lds
> >>> @@ -0,0 +1,48 @@
> >>> +LIBFDT_1.2 {
> >>> + global:
> >>> + fdt_next_node;
> >>> + fdt_check_header;
> >>> + fdt_move;
> >>> + fdt_string;
> >>
> >>Oh wow.... Any mechanism for making this a NOT hard-coded list?
> >>Some in-source macro-doo-dad-flag-setup-section-list thing?
> >
> >Yeah, I had the same thought. I'll look a bit more, but this is what
> >libhugetlbfs is using at the moment. The only other library I'm
> >remotely familiar with that does versioning is glibc. Maybe they
> >have magic foo I can steal.
>
> No really awesome magic. They have a similar mechanism of having
> a hard-coded list. We could do something like this in the source
> code:
Not to mention that looking at glibc source tends to make one's eyes
bleed.
> #define fdt_func ver_1_2_fdt_func
> int fdt_func(...) {
>
> and then this in version.lds:
>
> LIBFDT_1.2 {
> global:
> ver_1_2*;
> }
>
> but that seems pretty ugly too...
I concur
> The hard-coded list is pretty simple, at the risk of missing things.
I'm actually not too wirried about missing things. If we miss
something, it's pretty easy to fix. It probably would be a good idea
to make the testsuite build against the shared version of the library
to verify that at least the functions exercised there are correctly
exposed.
I'm marginally more worried about an overbroad wildcard including
something we didn't really want exposed. I think the versioning
script needs a:
local:
*
after the global list to to inhibit exposing everything else.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
next prev parent reply other threads:[~2008-11-26 1:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-25 14:21 [PATCH 1/2] libfdt: Add version.lds file Josh Boyer
[not found] ` <20081125142149.GB2340-JVa43G0qJ78RlTYtMZUE4cJ8OCA1ciLf@public.gmane.org>
2008-11-25 16:50 ` Jon Loeliger
[not found] ` <E1L517Q-0001Is-Fh-CYoMK+44s/E@public.gmane.org>
2008-11-25 16:57 ` Josh Boyer
[not found] ` <20081125165747.GB17258-JVa43G0qJ78RlTYtMZUE4cJ8OCA1ciLf@public.gmane.org>
2008-11-25 17:16 ` Josh Boyer
[not found] ` <20081125171648.GC17258-JVa43G0qJ78RlTYtMZUE4cJ8OCA1ciLf@public.gmane.org>
2008-11-26 1:47 ` David Gibson [this message]
[not found] ` <20081126014753.GF3420-787xzQ0H9iRg7VrjXcPTGA@public.gmane.org>
2008-11-26 1:57 ` Josh Boyer
[not found] ` <20081125205718.68a92b73-jnIq6iUNB1CO8iYQgJmm/0EOCMrvLtNR@public.gmane.org>
2008-11-26 2:11 ` David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081126014753.GF3420@yookeroo.seuss \
--to=david-xt8fgy+axnrb3ne2bgzf6laj5h9x9tb+@public.gmane.org \
--cc=devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org \
--cc=jwboyer-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.