Annotation of /trunk/mkinitrd-magellan/klibc/usr/klibc/arch/x86_64/MCONFIG
Parent Directory | Revision Log
Revision 532 -
(hide annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File size: 1345 byte(s)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File size: 1345 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
1 | niro | 532 | # -*- 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 | # Additional asm- directories needed during installation | ||
39 | ASMARCH = asm-i386 |