mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Timo Teras <timo.teras@iki.fi>
To: musl@lists.openwall.com
Cc: scjthm@live.com
Subject: Re: Linking musl with ld.gold
Date: Wed, 7 May 2014 13:04:43 +0300	[thread overview]
Message-ID: <20140507130443.72c74f47@vostro> (raw)
In-Reply-To: <SNT146-W32DB9B6A04FAFB7131CC5CA84E0@phx.gbl>

On Wed, 7 May 2014 10:04:24 +0100
Stephen Thomas <scjthm@live.com> wrote:

> > only the object files with referenced symbols are linked from an
> > archive
> > 
> > so only a.o with the given main.o because of the symbol f
> > 
> > now if you make some reference in main.c such that b.o should
> > be included but main still returns 0 that would be a bug
> > 
> > eg. add a void g(void){} to b.c and call it from main.c  
> 
> Ok, thanks for that info. It appears that there is a problem in gcc
> 4.9 and not 4.8.3.

Is perhaps -ffunction-sections and/or -fdata-sections added
automatically? Those would break musl like experienced.

- Timo


  reply	other threads:[~2014-05-07 10:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-06  9:07 Stephen Thomas
2014-05-06 10:14 ` Szabolcs Nagy
2014-05-06 21:11   ` Stephen Thomas
2014-05-06 23:18     ` Szabolcs Nagy
2014-05-07  9:04       ` Stephen Thomas
2014-05-07 10:04         ` Timo Teras [this message]
2014-05-08  0:03           ` Stephen Thomas
2014-05-08  1:06           ` Rich Felker
2014-05-08  2:08             ` Stephen Thomas
2014-05-08  3:01               ` Rich Felker
2014-05-08  5:11             ` Timo Teras
2014-05-08  5:18               ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140507130443.72c74f47@vostro \
    --to=timo.teras@iki.fi \
    --cc=musl@lists.openwall.com \
    --cc=scjthm@live.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).