asm 에서 #define 을 사용하고자 하는데...

dopesoul의 이미지

[linuxer@sclclass2 .step6]$ gcc -D_ASSEMBLY_ -traditional -c entry.s -o entry.o
entry.s: Assembler messages:
entry.s:113: Error: no such instruction: `merong'

linux 커널에서도 entry.S 내에 #define 을 사용하더라구요...
저도 사용하고자 하는데..

#define MERONG

.data
.globl sys_call_table;
.align 4
sys_call_table:
MERONG

잘안되네요... 도와주세요 ^^

익명 사용자의 이미지

확장자 .s대신에 .S를 써보세요.