Re: Linking standalone NASM binary with libc

2005-09-01 Thread Jonathon McKitrick
On Tue, Aug 30, 2005 at 02:11:09PM +0300, Giorgos Keramidas wrote: : I'm sure others can think of more points in support or linking to libc : and against linking to it :-) Most of what I want to do is low-level encryption... like copy protection routines. I love those. So who needs libc for

Re: Linking standalone NASM binary with libc

2005-08-30 Thread Giorgos Keramidas
On 2005-08-30 04:29, Jonathon McKitrick [EMAIL PROTECTED] wrote: I'm doing some experimentation with assembly code based on the int80h.org tutorials. But since I am going to use malloc and some other functions, I need to make my code link with libc rather than stand totally on its own. ld

Re: Linking standalone NASM binary with libc

2005-08-30 Thread Jonathon McKitrick
On Tue, Aug 30, 2005 at 01:37:02PM +0300, Giorgos Keramidas wrote: : On 2005-08-30 04:29, Jonathon McKitrick [EMAIL PROTECTED] wrote: : : I'm doing some experimentation with assembly code based on the int80h.org : tutorials. But since I am going to use malloc and some other functions, : I

Re: Linking standalone NASM binary with libc

2005-08-30 Thread Giorgos Keramidas
On 2005-08-30 11:43, Jonathon McKitrick [EMAIL PROTECTED] wrote: On Tue, Aug 30, 2005 at 01:37:02PM +0300, Giorgos Keramidas wrote: On 2005-08-30 04:29, Jonathon McKitrick [EMAIL PROTECTED] wrote: I'm doing some experimentation with assembly code based on the int80h.org tutorials. But since I

Linking standalone NASM binary with libc

2005-08-29 Thread Jonathon McKitrick
Hi all, I'm doing some experimentation with assembly code based on the int80h.org tutorials. But since I am going to use malloc and some other functions, I need to make my code link with libc rather than stand totally on its own. ld -s -o foo foo.o -lc leaves 'environ' and '__progname'