From 220e905af625ca8e433249e2cb74dfbaa2d252c3 Mon Sep 17 00:00:00 2001 From: Oxore Date: Fri, 4 Oct 2024 00:06:46 +0300 Subject: Add Sierra ASM68 support --- src/gnu.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 src/gnu.cpp (limited to 'src/gnu.cpp') diff --git a/src/gnu.cpp b/src/gnu.cpp deleted file mode 100644 index 7f8ebe1..0000000 --- a/src/gnu.cpp +++ /dev/null @@ -1,29 +0,0 @@ -/* SPDX-License-Identifier: Unlicense - */ - -#include "gnu.h" - -using namespace Gnu; - -static constexpr const char *SymbolTypeToElfTypeString(SymbolType t) -{ - switch (t) { - case SymbolType::kNone: return nullptr; - case SymbolType::kFunction: return "function"; - case SymbolType::kObject: return "object"; - } - return nullptr; -} - -void Gnu::EmitSymbolMetadata(FILE *out, const char *indent, const Symbol &symbol) -{ - const char *const type = SymbolTypeToElfTypeString(symbol.type); - if (type) { - fprintf(out, "%s.type\t%s, @%s\n", indent, symbol.name, type); - } -} - -void Gnu::EmitSymbolSize(FILE *out, const char *indent, const char *sym_name) -{ - fprintf(out, "%s.size\t%s,.-%s\n", indent, sym_name, sym_name); -} -- cgit v1.2.3