From ff82149968768d7cb3e3e473080351b74938a143 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Fri, 9 Oct 2026 10:44:10 +0530 Subject: Let's begin. --- .dir-locals.el | 1 + .editorconfig | 10 ++++++++++ mkelf.lua | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 .dir-locals.el create mode 100644 .editorconfig create mode 100644 mkelf.lua diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000..8f2e217 --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1 @@ +((nil . ((compile-command . "lua -W mkelf.lua")))) diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..5532099 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true + +[*.lua] +indent_style = space +indent_size = 4 +tab_width = 4 \ No newline at end of file diff --git a/mkelf.lua b/mkelf.lua new file mode 100644 index 0000000..94cde85 --- /dev/null +++ b/mkelf.lua @@ -0,0 +1,36 @@ +local osabi = { + sysv = 0x00, + hpux = 0x01, + netbsd = 0x02, + linux = 0x03, + hurd = 0x04, + solaris = 0x06, + aix = 0x07, + irix = 0x08, + freebsd = 0x09, + tru64 = 0x0A, + modesto = 0x0B, + openbsd = 0x0C, + openvms = 0x0D, + nsk = 0x0E, + aros = 0x0F, + fenixos = 0x10, + cloudabi = 0x11, + opevos = 0x12, +} + +local class = { + bit32 = 0x1, + bit64 = 0x2, +} + +local endian = { + little = 0x1, + big = 0x2, +} + +local version = 1 + +local header = { + class = class["bit32"] +} -- cgit v1.3