2 years ago
#12161
SRobertJames
How can I specify the location of `.text` section in memory in NASM?
In NASM, I can place code in .text
simply by prefacing it with section .text
. How can I tell it where I want the .text
section to start in vaddr space? E.g. I'd like it to be at 0x401000.
(Target is elf64.)
Note that NASM doesn't seem to support an ORIGIN
or ORG
directive for ELF files.
assembly
nasm
loader
0 Answers
Your Answer