Advertisement
Guest User

Untitled

a guest
Jan 25th, 2019
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.02 KB | None | 0 0
  1. diff --git a/setup/srcconf.c b/setup/srcconf.c
  2. index 967aed3..0300496 100644
  3. --- a/setup/srcconf.c
  4. +++ b/setup/srcconf.c
  5. @@ -952,7 +952,7 @@ printf("Symlink %s -> %s\n", source, target);
  6.  #if defined(__SCO_VERSION__)
  7.        fprintf (f, "CFLAGS=-O -D_KERNEL -D_DDI=8\n");
  8.  #else
  9. -      fprintf (f, "CFLAGS += -D_KERNEL\n");
  10. +      fprintf (f, "CFLAGS += -no-pie -D_KERNEL\n");
  11.  #endif
  12.  #ifdef HAVE_KERNEL_FLAGS
  13.        add_kernel_flags (f);
  14. diff --git a/setup/srcconf_linux.inc b/setup/srcconf_linux.inc
  15. index dfae1fc..3741014 100644
  16. --- a/setup/srcconf_linux.inc
  17. +++ b/setup/srcconf_linux.inc
  18. @@ -51,7 +51,7 @@ add_kernel_flags (FILE * f)
  19.  {
  20.  # if defined(__x86_64__)
  21.    fprintf (f,
  22. -        "CFLAGS += -O3 -fno-common -mcmodel=kernel  -mno-red-zone -fno-pie  -fno-asynchronous-unwind-tables -ffreestanding%s\n", fnsp);
  23. +        "CFLAGS += -O2 -fno-common -mcmodel=kernel  -mno-red-zone -fno-pie  -fno-asynchronous-unwind-tables -ffreestanding%s\n", fnsp);
  24.  # else
  25.  #   ifndef __arm__
  26.    if (getenv ("NO_REGPARM") == NULL)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement