Re: [dev] MIT/BSD licensed ELF linker?

From: Anselm R Garbe <>
Date: Thu, 6 Aug 2015 07:50:30 +0200

On 4 August 2015 at 22:58, Daniel Cegiełka <> wrote:
> 2015-08-04 22:42 GMT+02:00 Anselm R Garbe <>:
>> I'm working on a new stali distro (current state will be published
>> during the next days) and am looking for a ELF capable linker that
>> doesn't suffers from GPL/copyleft licensing issues.
>> Background: I need to solve the problem of not offering pre-linked
>> binaries that combine GPLed portions with other licensed portions...
>> but to come up with a neat solution, I'd like to rely on a free ELF
>> linker.
>> Suggestions?

I've tried it. It works, but it isn't at advanced at just picking the
required .o's than gold. All binaries I create with the elftoolchain's
experimental ld are about 25% larger, example:

ld -s -static posix.o utmp.o
-Ltoolchain/x86_64-linux-musl/x86_64-linux-musl/lib/ -lc -o utmp2
strip -a utmp2


x86_64-linux-musl-ld -s -static posix.o utmp.o
-Ltoolchain/x86_64-linux-musl/x86_64-linux-musl/lib/ -lc -o utmp3

-rwxr-xr-x 1 anselm anselm 42816 Aug 6 07:45 utmp2
-rwxr-xr-x 1 anselm anselm 33648 Aug 6 07:44 utmp3

I need to investigate further. But probably I will rather go with a
static gold linked against glibc to produce smaller binaries and to be
GPL compliant....

Received on Thu Aug 06 2015 - 07:50:30 CEST

This archive was generated by hypermail 2.3.0 : Thu Aug 06 2015 - 08:00:11 CEST