Delete file in assembly
<p>I am trying to delete file in assembly code (NASM) but I experienced the error "relocation truncated to fit against data" on section "mov dx, file_name". FYI, the file that I was trying to delete "input.txt" file do exist in my folder. I am not so sure with this kind of issue. Let me know where I missed.</p>

<pre><code>section .data
; filename
file_name           DB  "input.txt"

section .text
    global _start

_start:
    nop
    mov dx, file_name   ; getting an error : relocation truncated to fit R_386_16 against .data
    mov ah,41h          ; function 41h - delete file
    int 21h             ; call DOS service

endIt:
    nop
    ;Exit the program back to linux legally
    mov eax, 1                  ; exit system call value
    mov ebx, 0                  ; exit return code
    int 80h                     ; Call the kernel
</code></pre>