|
Message-ID: <a49a8f59-1612-e1b1-1aa2-73010ef4a287@redhat.com> Date: Fri, 8 May 2020 11:05:21 +0200 From: Harald Hoyer <harald@...hat.com> To: musl@...ts.openwall.com, Rich Felker <dalias@...c.org> Subject: Re: [PATCH] Enable linking to a static position independent executable I think, that is as small and non invasive, as it can get. > diff --git a/tools/musl-gcc.specs.sh b/tools/musl-gcc.specs.sh > old mode 100644 > new mode 100755 > index 30492574..ed584ed3 > --- a/tools/musl-gcc.specs.sh > +++ b/tools/musl-gcc.specs.sh > @@ -17,13 +17,13 @@ cat <<EOF > libgcc.a%s %:if-exists(libgcc_eh.a%s) > > *startfile: > -%{!shared: $libdir/Scrt1.o} $libdir/crti.o crtbeginS.o%s > +%{shared:;static-pie:$libdir/rcrt1.o; :$libdir/Scrt1.o} $libdir/crti.o crtbeginS.o%s > > *endfile: > crtendS.o%s $libdir/crtn.o > > *link: > --dynamic-linker $ldso -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic} > +-dynamic-linker $ldso -nostdlib %{shared:-shared} %{static:-static} %{static-pie:-static -pie --no-dynamic-linker} %{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.