diff options
author | Oxore <oxore@protonmail.com> | 2024-10-04 00:06:46 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2024-11-21 00:18:24 +0300 |
commit | 220e905af625ca8e433249e2cb74dfbaa2d252c3 (patch) | |
tree | a53b02b0c13eb8f693172083b94879a2d71a24b6 /src/gnu.cpp | |
parent | 559139fce64d685708c283397033bf152afd00a3 (diff) |
Add Sierra ASM68 supportsierra-support
Diffstat (limited to 'src/gnu.cpp')
-rw-r--r-- | src/gnu.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
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); -} |