Linker uses correct start address

This commit is contained in:
jeffman 2017-04-10 15:48:38 -04:00
parent e475c34e0a
commit 8bdcf23974
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ namespace Amalgamator
if (!RunAssembler(options.RootDirectory))
return 3;
linkerScript.AppendLine(@"SECTIONS { .text 0x8000000 : { *(.text .rodata) } }");
linkerScript.AppendLine($"SECTIONS {{ .text 0x{options.CompiledAddress:X} : {{ *(.text .rodata) }} }}");
foreach (var sym in EnumerateArmipsSymbols(options.GetRootFile(ArmipsSymFile))
.Where(s => undefinedSymbols.Contains(s.Key)))