Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 7 May 2014 01:18:08 +0200
From: Szabolcs Nagy <>
Subject: Re: Linking musl with

* Stephen Thomas <> [2014-05-06 22:11:32 +0100]:
> I think that I have managed to reproduce the problem, in as much isolation as possible. I believe that there is a missing step in your test, which is included in the build, and that is the creation of the archive. I may have done something incorrect also, which is also very likely.
> I attach a simple script for running the tests on my machine. Unfortunately, the system I use doesn't display indicate where was being used as it chooses to do this by changing the symlink to which ld points to.
> To summari(s/z)e when using ar to create an archive the weak symbol doesn't appear to be overridden, using either ld.bfd nor The script that was used to generate the output is attached and this should describe the 4 test cases. Test case #2 is probably irrelevant, and the first two are simply reproducing the results of your tests.

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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.