From 7311ec1dd72301b0066ba7aede35e9bd7131f1f7 Mon Sep 17 00:00:00 2001 From: jeffman Date: Mon, 10 Apr 2017 17:08:03 -0400 Subject: [PATCH] Combine .data section into .text --- compiled/Amalgamator/Amalgamator/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiled/Amalgamator/Amalgamator/Program.cs b/compiled/Amalgamator/Amalgamator/Program.cs index e947b53..e03de39 100644 --- a/compiled/Amalgamator/Amalgamator/Program.cs +++ b/compiled/Amalgamator/Amalgamator/Program.cs @@ -77,7 +77,7 @@ namespace Amalgamator if (!RunAssembler(options.RootDirectory)) return 3; - linkerScript.AppendLine($"SECTIONS {{ .text 0x{options.CompiledAddress:X} : {{ *(.text .rodata) }} }}"); + linkerScript.AppendLine($"SECTIONS {{ .text 0x{options.CompiledAddress:X} : {{ *(.text .data .rodata) }} }}"); foreach (var sym in EnumerateArmipsSymbols(options.GetRootFile(ArmipsSymFile)) .Where(s => undefinedSymbols.Contains(s.Key)))