[haiku-commits] haiku: hrev54689 - data/develop

  • From: Jérôme Duval <jerome.duval@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 30 Oct 2020 03:41:26 -0400 (EDT)

hrev54689 adds 1 changeset to branch 'master'
old head: ebb21bd1486152acf792f4b069339d14ef6e1896
new head: 072d3935c2497638e9c2502f574c133caeba9d3d
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=072d3935c249+%5Eebb21bd14861

----------------------------------------------------------------------------

072d3935c249: makefile-engine: Fix driver compilation on x86_64
  
  Remove unnecessary -fno-pic and make sure x64 linker output doesn't
  put too much space between program header sections. By default, the
  GNU linker will align program headers to page boundaries. In Haiku's
  x86_64 builds this is 2MB, which the kernel considers to be too
  much wasted space.
  
  Fixes #15702
  
  Change-Id: I2adce69b3de74340b05f7c0e8cda44d1b25b69fa
  Reviewed-on: https://review.haiku-os.org/c/haiku/+/3361
  Reviewed-by: Jérôme Duval <jerome.duval@xxxxxxxxx>

                                          [ Mark Barnett <mark@xxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev54689
Commit:      072d3935c2497638e9c2502f574c133caeba9d3d
URL:         https://git.haiku-os.org/haiku/commit/?id=072d3935c249
Author:      Mark Barnett <mark@xxxxxxxxxx>
Date:        Tue Oct 27 19:55:41 2020 UTC
Committer:   Jérôme Duval <jerome.duval@xxxxxxxxx>
Commit-Date: Fri Oct 30 07:41:17 2020 UTC

Ticket:      https://dev.haiku-os.org/ticket/15702

----------------------------------------------------------------------------

1 file changed, 4 insertions(+), 1 deletion(-)
data/develop/makefile-engine | 5 ++++-

----------------------------------------------------------------------------

diff --git a/data/develop/makefile-engine b/data/develop/makefile-engine
index 9fbffc90c1..7ca3e7bf7e 100644
--- a/data/develop/makefile-engine
+++ b/data/develop/makefile-engine
@@ -40,7 +40,7 @@ C++           := $(CXX)
 
 # Set up CFLAGS.
 ifeq ($(strip $(TYPE)), DRIVER)
-       CFLAGS  += -D_KERNEL_MODE=1 -fno-pic
+       CFLAGS  += -D_KERNEL_MODE=1
 else
        CFLAGS +=
 endif
@@ -93,6 +93,9 @@ else
 ifeq ($(strip $(TYPE)), DRIVER)
        LDFLAGS += -nostdlib /boot/system/develop/lib/_KERNEL_ \
                                /boot/system/develop/lib/haiku_version_glue.o
+ifeq ($(CPU), x86_64)
+       LDFLAGS += -z max-page-size=0x1000
+endif
 endif
 endif
 endif


Other related posts:

  • » [haiku-commits] haiku: hrev54689 - data/develop - Jérôme Duval