Permalink
Browse files

use the right linker

  • Loading branch information...
1 parent aff6341 commit e3afe51a946a7aa0cbb1bdcf24009f6dcc4d6152 @wolfwood wolfwood committed Jan 28, 2013
Showing with 3 additions and 2 deletions.
  1. +1 −1 app/build/build.sh
  2. +2 −1 build/build
View
@@ -26,7 +26,7 @@ do
${DC} ${item} ${DFLAGS} -c -oq -odobjs
done
-ld -nostdlib -nodefaultlibs -T${ROOT}/app/build/elf.ld -o ${TARGET} `ls objs/*.o` ${ROOT}/runtimes/mindrt/drt0.a ${ROOT}/runtimes/mindrt/mindrt.a
+x86_64-pc-xomb-ld -nostdlib -nodefaultlibs -T${ROOT}/app/build/elf.ld -o ${TARGET} `ls objs/*.o` ${ROOT}/runtimes/mindrt/drt0.a ${ROOT}/runtimes/mindrt/mindrt.a
echo
echo Copying
View
@@ -67,7 +67,7 @@ echo Creating Kernel Executable
echo '--> xomb'
#llvm-ld -native -Xlinker=-nostdlib -Xlinker=-Tlinker.ld -Xlinker="-b elf64-x86-64" `ls dsss_objs/G/*.o` -o iso/boot/xomb
#llvm-ld -nodefaultlib -g -I.. -I../kernel/runtime/. `ls dsss_objs/G/*.o`
-ld -nostdlib -nodefaultlibs -b elf64-x86-64 -T ${ARCH_PATH}/linker.ld -o iso/boot/xomb `ls objs/*.o`
+x86_64-pc-xomb-ld -nostdlib -nodefaultlibs -b elf64-x86-64 -T ${ARCH_PATH}/linker.ld -o iso/boot/xomb `ls objs/*.o`
echo
echo Compiling ISO
@@ -77,3 +77,4 @@ echo
echo Creating Kernel Symbol File
echo '--> xomb.sym'
source ./mkldsym.sh iso/boot/xomb xomb.sym
+strip -s iso/boot/xomb

0 comments on commit e3afe51

Please sign in to comment.