Skip to content

Instantly share code, notes, and snippets.

@thesamesam
Last active April 12, 2022 23:26
Show Gist options
  • Select an option

  • Save thesamesam/f7a9c17df0165e86babb189fda8d3048 to your computer and use it in GitHub Desktop.

Select an option

Save thesamesam/f7a9c17df0165e86babb189fda8d3048 to your computer and use it in GitHub Desktop.

Revisions

  1. thesamesam revised this gist Apr 12, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pie.md
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,4 @@
    * [Gentoo](https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-devel/clang/clang-14.0.0-r1.ebuild#n262) wanted to use it sooner but was waiting for an upstream acceptable patch to avoid rebasing, since 14+ is on by default
    * Chimera Linux and any LLVM based musl distros will be using it as it is forced on for musl in LLVM anyway

    Most distributions do not use an LLVM-based toolchain by default because this mostly (until very very recently) required using non-glibc.
    Most distributions do not use an LLVM-based toolchain by default because this mostly (until very very recently) required using non-glibc. Hence there has been less importance or regard for what LLVM's default was until recently because it was not used as a system compiler.
  2. thesamesam revised this gist Apr 12, 2022. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion pie.md
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,6 @@
    ## LLVM
    * [Arch Linux](https://github.com/archlinux/svntogit-packages/blob/packages/clang/trunk/enable-SSP-and-PIE-by-default.patch) has patched it in (on by default) for Clang for a while
    * [Gentoo](https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-devel/clang/clang-14.0.0-r1.ebuild#n262) wanted to use it sooner but was waiting for an upstream acceptable patch to avoid rebasing, since 14+ is on by default
    * Chimera Linux and any LLVM based musl distros will be using it as it is forced on for musl in LLVM anyway
    * Chimera Linux and any LLVM based musl distros will be using it as it is forced on for musl in LLVM anyway

    Most distributions do not use an LLVM-based toolchain by default because this mostly (until very very recently) required using non-glibc.
  3. thesamesam revised this gist Apr 12, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions pie.md
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,7 @@
    * [Fedora](https://fedoraproject.org/wiki/Changes/Harden_All_Packages) does it via spec files globally, not via toolchain
    * [Gentoo](https://github.com/gentoo/gentoo/blob/master/eclass/toolchain.eclass#L1187) (on for almost every arch by default, obviously in Gentoo you can toggle it easily if you want)
    * [openSUSE](https://bugzilla.suse.com/show_bug.cgi?id=912298) has an interesting gcc-pie package instead which provides a spec file
    * [Void Linux](https://github.com/void-linux/void-packages/blob/master/srcpkgs/gcc/template#L285)

    ## LLVM
    * [Arch Linux](https://github.com/archlinux/svntogit-packages/blob/packages/clang/trunk/enable-SSP-and-PIE-by-default.patch) has patched it in (on by default) for Clang for a while
  4. thesamesam revised this gist Apr 12, 2022. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion pie.md
    Original file line number Diff line number Diff line change
    @@ -8,4 +8,5 @@

    ## LLVM
    * [Arch Linux](https://github.com/archlinux/svntogit-packages/blob/packages/clang/trunk/enable-SSP-and-PIE-by-default.patch) has patched it in (on by default) for Clang for a while
    * [Gentoo](https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-devel/clang/clang-14.0.0-r1.ebuild#n262) wanted to use it sooner but was waiting for an upstream acceptable patch to avoid rebasing, since 14+ is on by default
    * [Gentoo](https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-devel/clang/clang-14.0.0-r1.ebuild#n262) wanted to use it sooner but was waiting for an upstream acceptable patch to avoid rebasing, since 14+ is on by default
    * Chimera Linux and any LLVM based musl distros will be using it as it is forced on for musl in LLVM anyway
  5. thesamesam revised this gist Apr 12, 2022. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion pie.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,11 @@
    ## GCC
    * [Alpine Linux](https://git.alpinelinux.org/aports/tree/main/gcc/APKBUILD#n358)
    * [Arch Linux](https://github.com/archlinux/svntogit-packages/blob/packages/gcc/trunk/PKGBUILD#L92)
    * [Debian, Ubuntu](https://salsa.debian.org/toolchain-team/gcc/-/blob/master/debian/rules2#L357) (on for most arches)
    * [Fedora](https://fedoraproject.org/wiki/Changes/Harden_All_Packages) does it via spec files globally, not via toolchain
    * [Gentoo](https://github.com/gentoo/gentoo/blob/master/eclass/toolchain.eclass#L1187) (on for almost every arch by default, obviously in Gentoo you can toggle it easily if you want)
    * [openSUSE](https://bugzilla.suse.com/show_bug.cgi?id=912298) has an interesting gcc-pie package instead which provides a spec file
    * [openSUSE](https://bugzilla.suse.com/show_bug.cgi?id=912298) has an interesting gcc-pie package instead which provides a spec file

    ## LLVM
    * [Arch Linux](https://github.com/archlinux/svntogit-packages/blob/packages/clang/trunk/enable-SSP-and-PIE-by-default.patch) has patched it in (on by default) for Clang for a while
    * [Gentoo](https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-devel/clang/clang-14.0.0-r1.ebuild#n262) wanted to use it sooner but was waiting for an upstream acceptable patch to avoid rebasing, since 14+ is on by default
  6. thesamesam revised this gist Apr 12, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions pie.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    * [Alpine Linux](https://git.alpinelinux.org/aports/tree/main/gcc/APKBUILD#n358)
    * [Arch Linux](https://github.com/archlinux/svntogit-packages/blob/packages/gcc/trunk/PKGBUILD#L92)
    * [Debian, Ubuntu](https://salsa.debian.org/toolchain-team/gcc/-/blob/master/debian/rules2#L357) (on for most arches)
    * [Fedora](https://fedoraproject.org/wiki/Changes/Harden_All_Packages) does it via spec files globally, not via toolchain
    * [Gentoo](https://github.com/gentoo/gentoo/blob/master/eclass/toolchain.eclass#L1187) (on for almost every arch by default, obviously in Gentoo you can toggle it easily if you want)
  7. thesamesam revised this gist Apr 12, 2022. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions pie.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    * [Alpine Linux](https://git.alpinelinux.org/aports/tree/main/gcc/APKBUILD#n358)
    * [Debian, Ubuntu](https://salsa.debian.org/toolchain-team/gcc/-/blob/master/debian/rules2#L357)
    * [Fedora](https://fedoraproject.org/wiki/Changes/Harden_All_Packages) does it via spec files globally, not via toolchain
    * [Debian, Ubuntu](https://salsa.debian.org/toolchain-team/gcc/-/blob/master/debian/rules2#L357) (on for most arches)
    * [Fedora](https://fedoraproject.org/wiki/Changes/Harden_All_Packages) does it via spec files globally, not via toolchain
    * [Gentoo](https://github.com/gentoo/gentoo/blob/master/eclass/toolchain.eclass#L1187) (on for almost every arch by default, obviously in Gentoo you can toggle it easily if you want)
    * [openSUSE](https://bugzilla.suse.com/show_bug.cgi?id=912298) has an interesting gcc-pie package instead which provides a spec file
  8. thesamesam revised this gist Apr 12, 2022. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion pie.md
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,3 @@
    * [Alpine Linux](https://git.alpinelinux.org/aports/tree/main/gcc/APKBUILD#n358)
    * [Debian, Ubuntu](https://salsa.debian.org/toolchain-team/gcc/-/blob/master/debian/rules2#L357)
    * [Debian, Ubuntu](https://salsa.debian.org/toolchain-team/gcc/-/blob/master/debian/rules2#L357)
    * [Fedora](https://fedoraproject.org/wiki/Changes/Harden_All_Packages) does it via spec files globally, not via toolchain
  9. thesamesam renamed this gist Apr 12, 2022. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  10. thesamesam created this gist Apr 12, 2022.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    * [Alpine Linux](https://git.alpinelinux.org/aports/tree/main/gcc/APKBUILD#n358)
    * [Debian, Ubuntu](https://salsa.debian.org/toolchain-team/gcc/-/blob/master/debian/rules2#L357)