all: assorted updates and cleanups

This commit is contained in:
Markus F.X.J. Oberhumer
2023-02-05 17:20:32 +01:00
parent 163377d1a0
commit b8d9c2b755
56 changed files with 691 additions and 853 deletions
+2 -2
View File
@@ -50,6 +50,8 @@ PackTos::PackTos(InputFile *f) : super(f) {
COMPILE_TIME_ASSERT_ALIGNED1(tos_header_t)
}
Linker *PackTos::newLinker() const { return new ElfLinkerM68k; }
const int *PackTos::getCompressionMethods(int method, int level) const {
bool small = ih.fh_text + ih.fh_data <= 256 * 1024;
return Packer::getDefaultCompressionMethods_8(method, level, small);
@@ -57,8 +59,6 @@ const int *PackTos::getCompressionMethods(int method, int level) const {
const int *PackTos::getFilters() const { return nullptr; }
Linker *PackTos::newLinker() const { return new ElfLinkerM68k; }
void PackTos::LinkerSymbols::LoopInfo::init(unsigned count_, bool allow_dbra) {
count = value = count_;
if (count == 0)