Re: NASM __i686.get_pc_thunk
Re: NASM __i686.get_pc_thunk
- Subject: Re: NASM __i686.get_pc_thunk
- From: "mm w" <email@hidden>
- Date: Thu, 2 Aug 2007 17:28:31 +0200
sorry,
it was really difficult to find, but i finally found what i needed to know :)
nasm sucks :D
mov ebx,0
mov eax,1
int 0x80
+ (je sors)
On 8/2/07, mm w <email@hidden> wrote:
> -------------------- lp.asm --------------------
> global _main
> extern _printf
>
> section .text
> _main:
> push say
> call _printf
> add esp, 4
> ret
> say:
> db 'Lupus Magnus', 10, 0
>
> -------------------- lp.asm --------------------
>
> ----------------------------------------------------
> $> nasm -f macho -o lp_nasm.o lp.asm
> $> nm lp_nasm.o
> 00000000 T _main
> U _printf
> 00000011 t say
> ----------------------------------------------------
>
> did i miss something ?
>
> +
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden