Fixed a fault with posix tasks not getting their LMA correctly

This commit is contained in:
Bahadir Balban
2009-10-01 13:13:27 +03:00
parent 70a3bb35f5
commit e5cde20ca9
6 changed files with 35 additions and 19 deletions

View File

@@ -24,6 +24,7 @@ def generate_lma_lds(target, source, env):
with open(source[0].path, 'r') as lds_in:
with open(target[0].path, 'w+') as lds_out:
linker_script = lds_in.read()
assert container.pager_lma != 0
lds_out.write(linker_script % conv_hex(container.pager_lma))
lma_lds = Command('include/linker.lds', 'include/linker.lds.in', generate_lma_lds)

View File

@@ -48,8 +48,9 @@ env.Append(LINKFLAGS = ['-T' + lma_lds[0].path, '-u_start'])
env.Append(CPPFLAGS = ' -D__USERSPACE__')
objs = env.Object(src + test_exec_asm)
test0 = env.Program('test0.elf', objs)
Depends(test0, objs)
Depends(test0, lma_lds)
Depends(lma_lds, previmage)
env.Depends(test0, test_exec)
Return('test0')