Work around Linux session keyring write behavior

If the session keyring matches the user session keyring, write
explicitly to the user session keyring.  Otherwise the kernel might
create a new session keyring for the process, making the resulting
cache collection invisible to other processes.

(cherry picked from commit 0642afa544b00054048775d0b9796923bf018e22)

ticket: 7814
version_fixed: 1.12.1
status: resolved
Avoid text relocations in iaesx86.s

Use PC-relative addressing to avoid runtime text relocations on i386.

Adapted patch from Nalin Dahyabhai.

(cherry picked from commit 3847aa109e8ff3f2781d53315f81e8d29ee35892)

ticket: 7815
version_fixed: 1.12.1
status: resolved
Restrict AES-NI support to ELF platforms for now

Since we explicitly specify the ELF object format when building
iaesx86.s or iaesx64.s, we need to restrict it to operating systems we
know to be ELF platforms.  Otherwise we can break the build on OS X,
which uses the Mach-O object format.

(cherry picked from commit 220066d9544a1fb1d6100f18f3ada7265799e97b)

ticket: 7812
version_fixed: 1.12.1
status: resolved