Skip to contentSkip to conversation

ZUC PMD as shared library

DISCUSSION Thomas Monjalon 2 participants 4 messages Oct 8, 2016 – Oct 13, 2016

lore
Share & tools
lore
#0 lore raw

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?

#1 lore raw

Hi Thomas,

Quoted 14 lines

-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Saturday, October 08, 2016 10:19 AM
To: De Lara Guarch, Pablo
Cc: [email protected]
Subject: ZUC PMD as shared library

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:

Quoted 7 lines

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.

Thanks,
Pablo

#2 lore raw

2016-10-12 02:23, De Lara Guarch, Pablo:

Quoted 15 lines

Hi Thomas,

From: Thomas Monjalon [mailto:[email protected]]

Quoted 12 lines

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

Quoted 7 lines
Quoted 3 lines

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.

#3 lore raw

Hi Thomas,

Quoted 30 lines

-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Wednesday, October 12, 2016 12:23 AM
To: De Lara Guarch, Pablo
Cc: [email protected]
Subject: Re: ZUC PMD as shared library

2016-10-12 02:23, De Lara Guarch, Pablo:

Quoted 15 lines

Hi Thomas,

From: Thomas Monjalon [mailto:[email protected]]

Quoted 12 lines

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

Quoted 7 lines
Quoted 3 lines

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

Quoted 6 lines

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.

Will document it. Once the library is fixed, it will be announce and I will remove the note.

Thanks,
Pablo