Título: No such file or directory Publicado por: insallah en 2 Marzo 2014, 09:43 am Buenas amigos
Tengo un problema en LInux a la hora de ejecutar archivos linkados con la libc ( basicamenye para usra printf y scanf) ensamblo el archivo con : as -32 -gstabs -o object.o object,s y linko con ld -m elf_i386 -g -o object object.o -lc el ejecutable aparece con los permisos adecuados pero no hay forma de ejecutarlo. Si alguien pudiera hacerme luz se lo agradeceria. Un saludo a tod@s insallah Título: Re: No such file or directory Publicado por: insallah en 9 Marzo 2014, 14:18 pm SOLVED!!!
Me respondo yo mismo: ld -dynamic-linker=/lib/ld-linux.so.2 -g -o objeto objeto.o Extraido del libroProfessional Assembly Language deRichard Blum "To solve this problem, you must also specify the program that will load the dynamic library at runtime. For Linux systems, this program is ld-linux.so.2 , normally found in the /lib directory. To specify this program, you must use the -dynamic-linker parameter of the GNU linker" Saludos. insallah |