From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: ZUC PMD as shared library Date: Wed, 12 Oct 2016 09:22:38 +0200 Message-ID: <1668805.iDXjnVEbkV@xps13> References: <1537716.E2UdgpDg0I@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: "De Lara Guarch, Pablo" Return-path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 70DCA6CC1 for ; Wed, 12 Oct 2016 09:22:41 +0200 (CEST) Received: by mail-wm0-f52.google.com with SMTP id c78so13866791wme.1 for ; Wed, 12 Oct 2016 00:22:41 -0700 (PDT) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-10-12 02:23, De Lara Guarch, Pablo: > Hi Thomas, > > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > > > > Hi Pablo, > > > > You are probably aware of the issue, but I would like to make it clear > > in case someone else run into the same trouble: > > > > It is impossible to build the ZUC crypto PMD as a shared library: > > > > libsso-zuc-0.1.1/build/libsso_zuc.a(sso_zuc_yasm.o): > > relocation R_X86_64_32 against `EK_d' can not be used > > when making a shared object; recompile with -fPIC > > > > The library libsso-zuc-0.1.1 needs an update to make the asm code > > relocatable. > > Should we explicit this limitation in the PMD doc? > > Sorry for not replying to this earlier. > Yes, you are right, thanks for pointing it out. > I think the same problem is in KASUMI, so I will send a doc update for both PMDs. No, KASUMI works as shared library, because there is no asm code. Documenting the bug would be nice as a first step. But it is a serious bug, so a fix in ZUC library is highly desirable.