pie/build: Cleaning up PIE/compel

Submitted by Dmitry Safonov on May 17, 2019, 10:52 p.m.

Details

Reviewer None
Submitted May 17, 2019, 10:52 p.m.
Last Updated May 21, 2019, 1:27 p.m.
Revision 1

Cover Letter

I was going to add vdso support to arm32 and just remove CONFIG_VDSO,
when I've noticed that parasite-vdso.o, util-vdso.o and vdso-pie.o
are included into pie.lib.a, rather just in restorer - which doesn't
make much sense.

I've got digressed and started cleaning the mess resulting with those 10
patches - optimum size for review :)

So, this is part 1, the next will be adding vdso support to arm32 and
removing CONFIG_VDSO, and then part 3 - what I initially wanted to do :D

Cc: Cyrill Gorcunov <gorcunov@gmail.com>

Travis-CI URL: https://travis-ci.org/0x7f454c46/criu/builds/534013272
Let's see if the Jenkins will be in ruins [hopefully all will go smooth].

Dmitry Safonov (10):
  build/pie: Add comments to build files
  arm/build: Move -marm cflag to CFLAGS_PIE
  build: Move __ASSEMBLY__ define to the top Makefile
  make: Don't export ccflags-y
  Makefile.crtools: Remove bogus ccflags-y
  build: Use cflags from compel for pie.lib.a
  compel: Don't use CFLAGS_PIE for libcompel.so
  make: Move CR_NOGLIBC into CFLAGS_PIE
  criu/ia32: Consolidate compat vdso and move to arch/x86
  build/criu/pie: Move trampolines to restorer-obj-y

 Makefile                             | 12 ++++++++++-
 compel/Makefile                      |  1 -
 compel/plugins/Makefile              |  4 ++--
 criu/Makefile                        | 25 ++++++++++------------
 criu/Makefile.crtools                |  2 --
 criu/arch/aarch64/Makefile           |  4 ----
 criu/arch/arm/Makefile               |  5 -----
 criu/arch/ppc64/Makefile             |  3 ---
 criu/arch/s390/Makefile              |  3 ---
 criu/arch/x86/Makefile               |  6 +-----
 criu/arch/x86/include/asm/restorer.h |  8 -------
 criu/arch/x86/include/asm/vdso.h     | 24 +++++++++++++++++++++
 criu/include/util-vdso.h             | 13 ++---------
 criu/pie/Makefile                    | 25 ++++++++++++++--------
 criu/pie/Makefile.library            | 32 ++++++----------------------
 criu/pie/parasite-vdso.c             | 14 ++----------
 16 files changed, 76 insertions(+), 105 deletions(-)
  

Revisions