Skip to main content

Questions tagged [nasm]

0 votes
1 answer
60 views

Why does assembler called from script not create a certain file when run from crontab?

I'm using this script to build and package some applications I developed. Full content of the script is listed at the end. It is called by this crontab entry: 50 23 * * * nice $HOME/update-dl-wwwecm $...
ecm's user avatar
  • 143
0 votes
0 answers
141 views

How to disassemble floppy disk?

I want to disassemble floppy disk and assemble it again with nasm -f bin command. For example, I want to disassemble MS-DOS .img files and assemble it again with nasm -f bin command. I tried to use ...
sbh's user avatar
  • 71
2 votes
1 answer
3k views

-bash: ./ex1: cannot execute binary file: Exec format error (on Ubuntu installed through Windows 10 app store, 64 bit)

I am trying to start out with some assembly but I run into this error from the outset. Here are the details: I've written the file myself (following a video) so its not some import: global _start ...
x iLeon's user avatar
  • 39
8 votes
1 answer
6k views

What are difference between the ELF symbol visibility levels?

The NASM docs on "elf Extensions to the GLOBAL Directive" say, Optionally, you can control the ELF visibility of the symbol. Just add one of the visibility keywords: default, internal, hidden, or ...
Evan Carroll's user avatar
  • 35.1k
0 votes
1 answer
2k views

Running a custom-compiled executable returns "No such file or directory"

I have an executable but when I run it I get "No such file or directory" $ chmod a+x bin $ file bin bin: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/...
Evan Carroll's user avatar
  • 35.1k
2 votes
1 answer
6k views

Compile shared library from asm code with current sources

I just did some basic functions in asm that I compile in a shared library. Like : BITS 64 global foo section .text foo: mov rax, 1 ret I compiled with :...
OOM's user avatar
  • 133