Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/klibc/arch/x86_64/MCONFIG

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1122 - (show annotations) (download)
Wed Aug 18 21:11:40 2010 UTC (13 years, 8 months ago) by niro
File size: 1379 byte(s)
-updated to klibc-1.5.19
1 # -*- makefile -*-
2 #
3 # arch/x86-64/MCONFIG
4 #
5 # Special rules for this architecture. Note that this is actually
6 # included from the main Makefile, and that pathnames should be
7 # accordingly.
8 #
9 # Blatantly copied and modified from i386 version by Mats Petersson, AMD.
10 #
11
12 #
13 # NOTE: -fno-asynchronous-unwind-tables produce significantly smaller
14 # binaries (20% smaller), but makes the code completely useless for
15 # debugging using gdb.
16 #
17 KLIBCARCHREQFLAGS = -m64
18 ifeq ($(DEBUG),y)
19 KLIBCOPTFLAGS += -g -Os -fomit-frame-pointer \
20 -falign-functions=1 -falign-jumps=1 -falign-loops=1
21 else
22 KLIBCOPTFLAGS += -Os -fno-asynchronous-unwind-tables -fomit-frame-pointer \
23 -falign-functions=1 -falign-jumps=1 -falign-loops=1
24 endif
25 KLIBCBITSIZE = 64
26 KLIBCLDFLAGS = -m elf_x86_64
27
28 # Extra linkflags when building the shared version of the library
29 # This address needs to be reachable using normal inter-module
30 # calls, and work on the memory models for this architecture
31 # 2 MB - normal binaries start at 4 MB
32 #
33 # Recent binutils use max-page-size=0x200000 by default, which pushes
34 # klibc.so data over the 4 MB mark, overlapping the executable.
35 # Revert to the old max-page-size=0x100000 value.
36 KLIBCSHAREDFLAGS = -Ttext 0x00200200 -z max-page-size=0x100000
37
38 # Asm includes for x86_64 are in the merged x86 tree
39 KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/x86/include