What would be the equivalent directive in GAS for the ORG (origin) directive in NASM?
EDIT: A warning to all: .org is not the origin directive, it seems to instead pad the assembled file with 00 up to the specified address.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t know beans about NASM, but I have the impression that it includes functionality that, in GNU toolchain land, is considered the linker’s responsibility, not the assembler’s.
You may need to mark up your assembly sources with custom
.sectiondirectives and then write a linker script to put each section at the desired address.