NASM - The Netwide Assembler
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Calendar
Login
Register
NASM - The Netwide Assembler
»
NASM Forum
»
Programming with NASM
»
format does not support 32-bit absolute addresses
« previous
next »
Print
Pages: [
1
]
Author
Topic: format does not support 32-bit absolute addresses (Read 9361 times)
helmi
Jr. Member
Posts: 3
format does not support 32-bit absolute addresses
«
on:
February 12, 2018, 01:31:14 PM »
I tried to build on my Mac but I get this error:
Mach-O 64-bit format does not support 32-bit absolute addresses
Code:
[Select]
mov rax, [num1]
section .data
num1: dq 100
nasm -f macho64 test.asm
Logged
Frank Kotler
NASM Developer
Hero Member
Posts: 2667
Country:
Re: format does not support 32-bit absolute addresses
«
Reply #1 on:
February 12, 2018, 06:38:36 PM »
Try "default rel". (I don't know why this works)
Best,
Frank
Logged
helmi
Jr. Member
Posts: 3
Re: format does not support 32-bit absolute addresses
«
Reply #2 on:
February 12, 2018, 11:08:24 PM »
I think OS X uses rip-relative addressing. I just found this after search on the internet.
Logged
Print
Pages: [
1
]
« previous
next »
NASM - The Netwide Assembler
»
NASM Forum
»
Programming with NASM
»
format does not support 32-bit absolute addresses