Problem with Assembly code for Linux 64

1

I've created a very simple 64-bit GNU Asssembly Linux code and it works. Except that after the strip it stops working. What could be happening?

Start the code

.section    .rodata

clear:
    .ascii "3c
.section    .rodata

clear:
    .ascii "3c%pre%"

size:
    .int . -clear       

.section    .text           
.globl _start           

_start:

_zera:

    xorq        %rax,   %rax
    xorq        %rdi,       %rdi
    xorq        %rsi,       %rsi
    xorq        %rdx,   %rdx

_apaga:

    movq    $1, %rax 
    movq    $1, %rdi
    movq    $clear, %rsi
    movq    size,   %rdx
    syscall

_fim:
    movq    $60,    %rax
    movq    $0,     %rdi
    syscall
" size: .int . -clear .section .text .globl _start _start: _zera: xorq %rax, %rax xorq %rdi, %rdi xorq %rsi, %rsi xorq %rdx, %rdx _apaga: movq $1, %rax movq $1, %rdi movq $clear, %rsi movq size, %rdx syscall _fim: movq $60, %rax movq $0, %rdi syscall

Thank you in advance.

    
asked by anonymous 01.04.2016 / 22:03

0 answers