I am trying to compile some sample asm code using fasm but I get this error:
I am not sure if this is related to the particular source code but here is it in case it is relevant:
I am running this in a jailed FreebSD14.1:
$ fasm boot.asm
ld-elf32.so.1: Shared object "libc.so.7" not found, required by "fasm"
I am not sure if this is related to the particular source code but here is it in case it is relevant:
Code:
$ cat boot.asm
org 0x7C00 ; Bootloader loaded at 0x7C00
start:
; Set up segment registers
mov ax, cs
mov ds, ax
mov es, ax
; Set up stack
mov ax, 0x0000
mov ss, ax
mov sp, 0x7C00
; Print message using BIOS interrupt
mov si, msg
print_loop:
lodsb ; Load next character
test al, al
jz halt ; Jump if null terminator
mov ah, 0x0E ; BIOS teletype function
int 0x10 ; Call BIOS
jmp print_loop
halt:
cli ; Disable interrupts
hlt ; Halt processor
msg db "Hello, World!", 0
times 510 - ($-$$) db 0 ; Pad to 510 bytes
dw 0xAA55 ; Boot signature
I am running this in a jailed FreebSD14.1:
$ uname -a
FreeBSD qemu 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64