amend makefile and LCF

This commit is contained in:
EpochFlame 2021-11-07 11:29:37 -05:00
parent 7f6b575788
commit 411f63edda
3 changed files with 3 additions and 9 deletions

View File

@ -39,7 +39,6 @@ S_FILES := $(wildcard asm/*.s)
C_FILES := $(wildcard src/*.c)
CPP_FILES := $(wildcard src/*.cpp)
LDSCRIPT := $(BUILD_DIR)/ldscript.lcf
PATCHLINKER := patch_linker.sh
READMEGEN := tools/UpdateReadme.exe
# Outputs

View File

@ -30,15 +30,15 @@ GROUP: {
_size_extab = SIZEOF(._extab);
_size_extabindex = SIZEOF(._exidx);
_size_text = SIZEOF(.text);
_size_ctors = SIZEOF(.ctors); /* unlike the other sections, we can use this size symbol as-is. */
_size_ctors = SIZEOF(.ctors);
_size_dtors = SIZEOF(.dtors);
_size_rodata = SIZEOF(.rodata);
_size_data = SIZEOF(.data);
_size_sdata = SIZEOF(.sdata); /* unlike the other sections, we can use this size symbol as-is. */
_size_sdata = SIZEOF(.sdata);
_size_sdata2 = SIZEOF(.sdata2);
_size_bss = SIZEOF(.bss);
_size_sbss = SIZEOF(.sbss);
_size_sbss2 = SIZEOF(.sbss2); /* unlike the other sections, we can use this size symbol as-is. */
_size_sbss2 = SIZEOF(.sbss2);
}
FORCEFILES {

View File

@ -1,5 +0,0 @@
#!/bin/bash
# param 1: file
# param 2: offset
# param 3: value
printf "$(printf '\\x%02X' $2)" | dd of="$1" bs=1 seek=222480 count=1 conv=notrunc &> /dev/null