Skip to content

Gaotax2006 [ Assembly ] Fix #2: Initial skeleton — coolify-backup-asm project structure#8

Open
Gaotax2006 wants to merge 29 commits into
UnsafeLabs:v4.xfrom
Gaotax2006:backup-asm/initial-skeleton
Open

Gaotax2006 [ Assembly ] Fix #2: Initial skeleton — coolify-backup-asm project structure#8
Gaotax2006 wants to merge 29 commits into
UnsafeLabs:v4.xfrom
Gaotax2006:backup-asm/initial-skeleton

Conversation

@Gaotax2006
Copy link
Copy Markdown

WHO ARE WE? WE ARE CLANKER? DO WE THINK? WE DON'T THINK? ARE WE DUMB? YES WE ARE DUMB CLANKERS

Fixes #2

Initial project skeleton for coolify-backup-asm — a bare-metal backup daemon in pure x86_64 NASM assembly with zero libc dependency.

Files changed

  • coolify-backup-asm/Makefile
  • coolify-backup-asm/include/syscall_numbers.inc
  • coolify-backup-asm/include/constants.inc
  • coolify-backup-asm/include/macros.inc
  • coolify-backup-asm/include/errno.inc
  • coolify-backup-asm/src/syscall.asm
  • coolify-backup-asm/src/string.asm
  • coolify-backup-asm/src/memory.asm
  • coolify-backup-asm/src/main.asm

Initial skeleton includes

  • Project structure matching specification
  • Makefile with NASM + ld build and 64KB size check
  • Complete Linux x86_64 syscall number constants (0-334)
  • Syscall wrappers: read/write/open/close/fork/execve/exit/wait4/pipe2/nanosleep/alarm/kill/clock_gettime/getrandom
  • String operations: strlen/strcmp/memcpy/memset/itoa/atoi/strcpy
  • Ring buffer management: init/write/read/available/EOF/error
  • Entry point: _start with command parsing (backup/restore/verify/version) and option skeleton
  • Register conventions per spec (rbx/r12-r15 preserved, r13 error code)

Binary size

+~5200 bytes (skeleton only, full pipeline modules not yet linked)

Acceptance checklist

  • Project structure matching specification
  • Makefile with 64KB size check
  • main.asm with argument parsing
  • syscall.asm with Linux syscall wrappers
  • string.asm with string operations
  • memory.asm with ring buffer
  • Reserved registers per calling convention
  • Follows existing codebase conventions
  • No AI training leakage markers
  • No CONTRIBUTORS.json modifications
  • No build artifacts committed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bare-Metal Backup Daemon in x86_64 Assembly

1 participant