From 6127c7381d7bc58ddbbb6ed5f5955577402a1e7d Mon Sep 17 00:00:00 2001 From: "Andrey Halyavin (halyavin)" Date: Fri, 22 Sep 2006 17:16:35 +0000 Subject: [PATCH] fixed bug in melibc and minor bug in compiler. git-svn-id: svn://kolibrios.org@158 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/metcc/trunk/libc/mesys/file_58.asm | 4 ++-- programs/develop/metcc/trunk/source/tccmeos.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/programs/develop/metcc/trunk/libc/mesys/file_58.asm b/programs/develop/metcc/trunk/libc/mesys/file_58.asm index ad042642a7..68e7190b9d 100644 --- a/programs/develop/metcc/trunk/libc/mesys/file_58.asm +++ b/programs/develop/metcc/trunk/libc/mesys/file_58.asm @@ -14,9 +14,9 @@ _msys_read_file: mov eax,[ebp+12] mov [file_struct.offset],eax mov eax,[ebp+16] - mov [file_struct.offset],eax + mov [file_struct.size],eax mov eax,[ebp+20] - mov [file_struct.offset],eax + mov [file_struct.data],eax mov [file_struct.temp_buffer],temp_buffer mov edx,[ebp+8] call copy_file_name diff --git a/programs/develop/metcc/trunk/source/tccmeos.c b/programs/develop/metcc/trunk/source/tccmeos.c index b36995c57e..f6c4dbcf7f 100644 --- a/programs/develop/metcc/trunk/source/tccmeos.c +++ b/programs/develop/metcc/trunk/source/tccmeos.c @@ -226,6 +226,7 @@ int tcc_output_me(TCCState* s1,const char *filename) me.s1=s1; relocate_common_syms(); assign_addresses(&me); + me.header.version=1; me.header.entry_point=tcc_find_symbol_me(&me,"start"); me.header.params= tcc_find_symbol_me(&me,"__argv"); // <-- me.header.argv= tcc_find_symbol_me(&me,"__path"); // <--