Re: Darwin 8.0 Source Code Available
site_archiver@lists.apple.com Delivered-To: Darwin-dev@lists.apple.com On Apr 30, 2005, at 8:30 AM, Timothy J.Wood wrote: export LDFLAGS_KERNEL_I386 = \ -arch i386 \ - -segaddr __HIB 0xC0100000 \ - -segaddr __TEXT 0xC0111000 + -Wl,-segaddr,__HIB,0xC0100000 \ + -Wl,-segaddr,__TEXT,0xC0111000 export LDFLAGS_KERNEL = $(LDFLAGS_KERNEL_GEN) \ $($(addsuffix $(ARCH_CONFIG),LDFLAGS_KERNEL_)) \ matt. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Shouldn't xnu specify gcc 3.3 in it's Makefile, then? Here's a patch to xnu-792/makedefs/Makeinc.def that lets xnu specify gcc 3.3 regardless of the default compiler: +++ xnu-792/makedefs/MakeInc.def 2005-04-30 10:37:47.000000000 -0700 @@ -87,9 +87,10 @@ # # Compiler command # -KCC = /usr/bin/cc -KC++ = /usr/bin/c++ +KCC = /usr/bin/gcc-3.3 +KC++ = /usr/bin/g++-3.3 CC = $(KCC) +export MIGCC = $(KCC) # # Compiler warning flags @@ -173,8 +174,8 @@ # # Assembler command # -AS = /usr/bin/cc -S_KCC = /usr/bin/cc +AS = $(KCC) +S_KCC = $(KCC) # # Default SFLAGS @@ -196,7 +197,7 @@ # # Linker command # -LD = /usr/bin/ld +LD = $(KC++) -nostdlib # # Default LDFLAGS @@ -217,14 +218,14 @@ export LDFLAGS_KERNEL_GEN = \ -static \ -force_cpusubtype_ALL \ - -e __start \ - -segalign 0x1000 \ - -sectalign __TEXT __text 0x1000 \ - -sectalign __DATA __common 0x1000 \ - -sectalign __DATA __bss 0x1000 \ - -sectcreate __PRELINK __text /dev/null \ - -sectcreate __PRELINK __symtab /dev/null \ - -sectcreate __PRELINK __info /dev/null + -Wl,-e,__start \ + -Wl,-segalign,0x1000 \ + -Wl,-sectalign,__TEXT,__text,0x1000 \ + -Wl,-sectalign,__DATA,__common,0x1000 \ + -Wl,-sectalign,__DATA,__bss,0x1000 \ + -Wl,-sectcreate,__PRELINK,__text,/dev/null \ + -Wl,-sectcreate,__PRELINK,__symtab,/dev/null \ + -Wl,-sectcreate,__PRELINK,__info,/dev/null export LDFLAGS_KERNEL_RELEASE = # -noseglinkedit @@ -233,14 +234,14 @@ export LDFLAGS_KERNEL_PPC = \ -arch ppc \ - -segaddr __VECTORS 0x0 \ - -segaddr __HIB 0x7000 \ - -segaddr __TEXT 0xe000 + -Wl,-segaddr,__VECTORS,0x0 \ + -Wl,-segaddr,__HIB,0x7000 \ + -Wl,-segaddr,__TEXT,0xe000 This email sent to site_archiver@lists.apple.com
participants (1)
-
Matt Watson