All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sven Vermeulen <sven.vermeulen@siphos.be>
To: SELinux List <selinux@tycho.nsa.gov>
Subject: setools and gold linker
Date: Thu, 15 Aug 2013 13:27:26 +0200	[thread overview]
Message-ID: <20130815112726.GA1104@siphos.be> (raw)

Hi all

I have a bug report regarding SETools not being able to build when the "gold
linker" is used [1]. The build output is as follows:

x86_64-pc-linux-gnu-ranlib libqpol.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld:
error: symbol qpol_policy_open_from_memory has undefined version 
collect2: error: ld returned 1 exit status

It doesn't like the following (unversioned) symver:

__asm__(".symver qpol_policy_open_from_memory_old,qpol_policy_open_from_memory@");

Handling these things is a bit beyond my comprehension, so I'm asking here.
Would it be a good idea to, like the FUSE example mentioned in the
bugreport, create a QPOL_UNVERSIONED in libqpol.map (with no content) and
refer to that, like so:

__asm__(".symver qpol_policy_open_from_memory_old,qpol_policy_open_from_memory@QPOL_UNVERSIONED");

Same of course for the other unversioned ones.

Wkr,
	Sven Vermeulen

[1] https://bugs.gentoo.org/show_bug.cgi?id=467136

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

                 reply	other threads:[~2013-08-15 11:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20130815112726.GA1104@siphos.be \
    --to=sven.vermeulen@siphos.be \
    --cc=selinux@tycho.nsa.gov \
    /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.