|
Message-ID: <20180718202406.GO4418@port70.net> Date: Wed, 18 Jul 2018 22:24:07 +0200 From: Szabolcs Nagy <nsz@...t70.net> To: musl@...ts.openwall.com Subject: Re: Re: Segmentation fault in static binaries built with recent binutils * Szabolcs Nagy <nsz@...t70.net> [2018-07-18 22:19:28 +0200]: > the difference between the two cases was --build-id > > --build-id=sha1 works, --build-id=none segfaults > as a work around you can add build-id to the musl-gcc.specs diff --git a/tools/musl-gcc.specs.sh b/tools/musl-gcc.specs.sh index 294e24f7..9b4aa761 100644 --- a/tools/musl-gcc.specs.sh +++ b/tools/musl-gcc.specs.sh @@ -23,7 +23,7 @@ libgcc.a%s %:if-exists(libgcc_eh.a%s) %{shared|pie:crtendS.o%s;:crtend.o%s} $libdir/crtn.o *link: --dynamic-linker $ldso -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic} +--build-id -dynamic-linker $ldso -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic} *esp_link:
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.