🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.asm.x86
Article #146

How to link HelloWorld.O (created by GCC) ??

#146
From: Hans
Date: Wed, 21 May 2003 17:39
15 lines
2202 bytes
Hello,

I have written HelloWorld.c and compiled to assembly using GCC. (so I can
study the assembly).

Using AS I have assembled HelloWorld.s to HelloWorld.O

But how to link HelloWorld.O to HelloWorld Executable? Which minimal command
line options do I need to use to link? The Linker is complaining about the
Printf call. Against which and HOW sharedlibrary stub do I need to link
HelloWorld.O?

Thanks!

Hans
Technical Details
Message-ID: <bagdiq$ol1$1@news4.tilbu1.nb.home.nl>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!cyclone.swbell.net!newsfeed1.easynews.com!easynews.com!easynews!sn-xit-02!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!news.crayne.org!clax86!robomod!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114917,3e6e7567159c8b7a,start
X-Google-Attributes: gid114917,public
X-Google-Thread: f65d0,3e6e7567159c8b7a,start
X-Google-Attributes: gidf65d0,public
X-Google-ArrivalTime: 2003-05-21 11:58:07 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!cyclone.swbell.net!newsfeed1.easynews.com!easynews.com!easynews!sn-xit-02!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!news.crayne.org!clax86!robomod!not-for-mail
From: "Hans" <nospam@nospam.com>
Newsgroups: comp.lang.asm.x86,gnu.gcc
Subject: How to link HelloWorld.O (created by GCC) ??
Approved: CLAX86 Moderators <ccrayne@crayne.org>
Date: Wed, 21 May 2003 19:39:26 +0200
Organization: @Home Benelux
Message-ID: <bagdiq$ol1$1@news4.tilbu1.nb.home.nl>
X-CLAX86-Policy: http://www.pacificsites.com/~ccrayne/clax86.html
X-CLAX86-Faq: http://www2.dgsys.com/~raymoon/x86faqs.html
X-CLAX86-Info-1: Send submissions to             comp-lang-asm-x86@moderators.isc.org
X-CLAX86-Info-2: Send technical complaints to    ccrayne@crayne.org
X-CLAX86-Info-3: Send complaints about policy to ccrayne@crayne.org
X-Comment: moderators do not necessarily agree or disagree with this article.
Reply-To: "Hans" <nospam@nospam.com>
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-MailScanner: Found to be clean
X-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=1.6,
 required 5, NOSPAM_INC, PRIORITY_NO_NAME, SPAM_PHRASE_00_01)
X-UIDL: C:-"!G+F!!~I&"!jGS!!
X-Complaints-To: abuse@supernews.com
Lines: 18