1
1

fixed bug in melibc and minor bug in compiler.

git-svn-id: svn://kolibrios.org@158 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Andrey Halyavin (halyavin) 2006-09-22 17:16:35 +00:00
parent 69e4361cc8
commit 6127c7381d
2 changed files with 3 additions and 2 deletions
programs/develop/metcc/trunk
libc/mesys
source

View File

@ -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

View File

@ -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"); // <--