blob: a09eecaee3bd2cd7df244c82f079c26a2d3929e3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
; Example with a data segment.
; nasm -f elf test6-global.s
; gcc -Wall -s test6-global.o -o test6
BITS 32
SECTION .data
foo: dd 42
SECTION .text
GLOBAL main
main:
mov eax, [foo]
ret
|