From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9168 Path: news.gmane.org!not-for-mail From: N Jain Newsgroups: gmane.linux.lib.musl.general Subject: Re: MUSL issue while loading C++ lib Date: Thu, 21 Jan 2016 16:17:36 -0500 Message-ID: References: <20160121171245.GC9621@port70.net> <20160121200626.GD9621@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01182272ba44260529dea165 X-Trace: ger.gmane.org 1453411078 21914 80.91.229.3 (21 Jan 2016 21:17:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jan 2016 21:17:58 +0000 (UTC) To: musl@lists.openwall.com, Szabolcs Nagy Original-X-From: musl-return-9181-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jan 21 22:17:54 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aMMc3-0002ca-O8 for gllmg-musl@m.gmane.org; Thu, 21 Jan 2016 22:17:51 +0100 Original-Received: (qmail 23675 invoked by uid 550); 21 Jan 2016 21:17:49 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 23653 invoked from network); 21 Jan 2016 21:17:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0lD2cazSBavIis2E7uhHru6EfaFc90j2gobDnLq+4fc=; b=gUiC4Njv0nhj+v/+K3oCVY2xXjhZFHbbqy2A4uxWYsIjn/Ztdm/wThdObTDahWcopN W6jaIVDZ5cM/rFnGaYMoyFkvrHmEZDP5fdeCzOu2FlVzwAIrgvKr7YunDgpJYoQ32Syu HUgSeG5Cti9WJTTPx7Rv9iH3jdEEECccRICrEdF/GJzqW3GWyJvaoq+iImTyObpMytMq cCPLxfuMvEIIJ/old09NxCwpRpybcYbfVXwnlPXv06tAMzYPmGno1DoQwliJPpMJs/61 voP7y/fgaGMg36jV/LUnqjwpWii3q47sCpoZ2yd5+imafXSskiTQk3ZDF2D65qLd41cU R2xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=0lD2cazSBavIis2E7uhHru6EfaFc90j2gobDnLq+4fc=; b=hsUpTDunKp8YuHWx9ZT1ZSJn5pEmbrF5AheDc5ymV7dwChM3AhFSv18Y+seNUqURCZ MiMzVolhtv/51GqsNI34qtACII770fqBfMWRLkzbyt/i8pRwL7tCPptnfTY13QdsU7uC SXDTSFqV/mnsaE3AHAGZ6BV5qkl7lw3/LeqT/ZgtcSWvzyiwhufB3atElHuike7n4Va2 1tDK+5DGFUhUVbZXpfXLZzMsMJ2JT3eqbSjPh54eOmRL7c/QfI0H5V16nTtMhwFB9o+4 rRiM5P8U+6BiyBuHFJiy/1FQQ0+U8sSkDuG26goC1h9lU/UQZyCKKWhosIRwzi+vuGKk aTQg== X-Gm-Message-State: AG10YORqaCr54TQWTSEbZDTYqCpA645z/+264ZW1zl5Yg2wYKE47f4pirlusmPinQzmQ0qA+VgOfmbxUw+57Jw== X-Received: by 10.60.178.70 with SMTP id cw6mr13603092oec.46.1453411056368; Thu, 21 Jan 2016 13:17:36 -0800 (PST) In-Reply-To: <20160121200626.GD9621@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:9168 Archived-At: --089e01182272ba44260529dea165 Content-Type: text/plain; charset=UTF-8 > > > > this looks ok too > > > i think the musl linker should be able to deal with this :P > Do you mean linking using "g++" is not right way ? I am trying to find out if I could use "ld" directly but not sure what options to use and how to pass libs. I am using below commands to compile and link gcc -c a.c -o bin/a.o g++ -c acpp.cpp -o bin/acpp.o g++ bin/a.o bin/acpp.o -o a.elf While reading about the difference between ld and g++ linking I found g++ uses ld itself. Am I missing something ? Thanks, NJ --089e01182272ba44260529dea165 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

=


> this looks ok too

> i think the musl linker should be able to deal with this :P


Do you mean linking using "g++" is not right wa= y ? I am trying to find out if I could use "ld" directly but not = sure what options to use and how to pass libs.
I am using below commands to compile and link=C2=A0

gcc=C2=A0-c =C2=A0a.c= -o bin/a.o
g++=C2=A0-c acpp.cpp -o bin= /acpp.o

g++ =C2=A0 bin/a.o bin/acpp.o =C2=A0-o a.elf

While reading about the di= fference between ld and g++ linking I found g++ uses ld itself.
Am I missing something ?

Thanks,
NJ

--089e01182272ba44260529dea165--