🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #15983

Re: Programa ld

#15983
From: batsman
Date: Thu, 18 May 2000 00:00
50 lines
2407 bytes
-----BEGIN PGP SIGNED MESSAGE-----


  >> La verdad est� ah� fuera. El mensaje de Jordi Minyana Estruch, debajo:

>Despues de generar el codigo ensamblador con:
>
>    gcc -S programa.c
>
>y de ensamblarlo con
>
>    as -o programa.o programa.s
>
>que debo hacer con el ld.
>
>Yo utilizo:
>
>    ld -s -o programa -e main -lc
>
>pero al intentar ejecutar el programa modice que no encuentra el
>archivo.
>(el archivo programa tiene permisos de ejecucion y existe)

�Y por qu� no haces gcc -o programa programa.c?
Si lo que quieres es ver el c�digo ensamblador, haces el gcc -S, pero si
quieres hacer el ejecutable, �por qu� los tres pasos a mano en vez del
'directo'?

- -- 
              _           _                             
             | |__   __ _| |_ ___ _ __ ___   __ _ _ __  
             | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ 
             | |_) | (_| | |_\__ \ | | | | | (_| | | | |
             |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|

             Real email: batsman dot geo at yahoo dot com

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Public key via email: send mail with Subject: [PGPKEY]

iQEVAwUBOSQ97b0Y27yr0iefAQGTAggAo5emcI9ryCcqrlQe5ym2MzXNGfC4+1vI
tbtIYdusyeUlvm1J7eWLz0zDnWgkJo5GaRu5WSoR06Fum+cUkX+OadxGZi+PMrOk
dxs9hED7HPQ4mWgjSuuq4KsK6xSPzjrolA5L3jGyAwqj3cAWqz6BZjtLsLx03zvO
/fuWbR0gH73/wGjp0NiQZp/Z25GWpFAQkM5Dat27doO2UYddB75I+7++TzYQYGeL
PCqcZEPwVuhxu6XgEY8Sk9s3gChouKXgp8HP79zQ+x3xBLyNeuRjRP+llVC7ZIWP
fQ5NNuuOYxZ/E+JC7SJ2kKcSrePwmLkW+eeN/2258p0+IOk6cvVRTA==
=3oFJ
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <ile1g8.sc.ln@simpsons4ever>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3923FE84.C6104D5@escorpio.ls.fi.upm.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,dc7230498d70fcac
X-Google-Attributes: gidf86c8,public
From: batsman@simpsons.for.ever (batsman)
Subject: Re: Programa ld
Date: 2000/05/18
Message-ID: <ile1g8.sc.ln@simpsons4ever>
X-Deja-AN: 625143360
Content-Transfer-Encoding: 8bit
References: <3923FE84.C6104D5@escorpio.ls.fi.upm.es>
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: abuse@news.wanadoo.es
X-Trace: m2newsread.uni2.es 958683828 62.36.24.219 (Thu, 18 May 2000 23:03:48 MET DST)
Organization: Wanadoo Usenet News - Visita http://www.wanadoo.es/
Mime-Version: 1.0
User-Agent: slrn/0.9.5.3 (UNIX)
Reply-To: see_signature-mira_firma
NNTP-Posting-Date: Thu, 18 May 2000 23:03:48 MET DST
Newsgroups: es.comp.os.linux.programacion