Generate the final link linker scripts.

This commit is contained in:
Russel Winder
2009-08-10 11:30:53 +01:00
parent 52962b5b19
commit 9cb2b7470f
4 changed files with 45 additions and 21 deletions

View File

@@ -261,7 +261,7 @@ else :
loaderEnvironment = baseEnvironment.Clone(
CC = 'arm-none-linux-gnueabi-gcc',
CCFLAGS = ['-g', '-nostdlib', '-ffreestanding', '-std=gnu99', '-Wall', '-Werror'],
LINKFLAGS = ['-nostdlib', '-Tloader/mylink.lds'],
LINKFLAGS = ['-nostdlib', '-T' + buildDirectory + '/loader/linker.lds'],
PROGSUFFIX = '.axf',
LIBS = [libelf, libs['baremetal'], 'gcc', libs['baremetal']],
CPPPATH = ['#libs/elf/include', '#' + buildDirectory + '/loader'])