Skip to content
Snippets Groups Projects
Commit cb9d62b6 authored by Sören Tempel's avatar Sören Tempel
Browse files

community/pcc-libs: upgrade to 20210917

parent 1688b73f
No related branches found
No related tags found
No related merge requests found
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> # Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net> # Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=pcc-libs pkgname=pcc-libs
pkgver=20210420 pkgver=20210917
pkgrel=1 pkgrel=0
pkgdesc="The portable C compiler support libraries." pkgdesc="The portable C compiler support libraries."
url="http://pcc.ludd.ltu.se/" url="http://pcc.ludd.ltu.se/"
arch="x86 x86_64" arch="x86 x86_64"
license="BSD" license="BSD"
subpackages="$pkgname-dev" subpackages="$pkgname-dev"
source="ftp://pcc.ludd.ltu.se/pub/pcc-libs/pcc-libs-$pkgver.tgz source="ftp://pcc.ludd.ltu.se/pub/pcc-libs/pcc-libs-$pkgver.tgz
musl-fixes.patch musl-fixes.patch"
fix-function-placement.patch"
prepare() { prepare() {
default_prepare default_prepare
...@@ -33,7 +32,6 @@ package() { ...@@ -33,7 +32,6 @@ package() {
} }
sha512sums=" sha512sums="
0fb1f0eae24a3f6e49e27995b05ed40e7adc6180d8db887eb66963c0b95bd7965f9d1afa45b5cc483fbc0e6ab2bd83f1d9bb701fc2009a996452c242afdf9460 pcc-libs-20210420.tgz 5abe803490bd65a5e3a5577c4888f641003b7b268aac560422904119e4b53507833d3fa5360205f98346615c8620eb00ad930dd25833a63d34d4d62d5710e1b5 pcc-libs-20210917.tgz
fd8c71cd583c6be29553f2b7e6ce66073afd6d0406ae86f6fbb6a36efe8685be4732d2989180a9b31af734cc9a0973c1c731472f02bad076121f6c3c58391fc4 musl-fixes.patch fd8c71cd583c6be29553f2b7e6ce66073afd6d0406ae86f6fbb6a36efe8685be4732d2989180a9b31af734cc9a0973c1c731472f02bad076121f6c3c58391fc4 musl-fixes.patch
d4aba074a40228eb8370b67ca98c8635293573a32609860e9cdbf21f6f845d2335dd84f53eed73c22b90984ebb80fd557b098d015737142627609a41d19e3db9 fix-function-placement.patch
" "
Without this patch, GCC places all functions declared afterwards in this
file in the .dtors section. This section is not executable, thus
attempting to execute data defined in this section will cause a
segmentation fault. This patch modifies the assembly to ensure that the
declared functions end up in the executable text segment.
See https://gitlab.alpinelinux.org/alpine/aports/-/issues/13012#note_180302
diff -upr pcc-libs-20210420.orig/csu/linux/crtbegin.c pcc-libs-20210420/csu/linux/crtbegin.c
--- pcc-libs-20210420.orig/csu/linux/crtbegin.c 2021-09-16 12:23:33.007528786 +0200
+++ pcc-libs-20210420/csu/linux/crtbegin.c 2021-09-16 12:24:01.290921849 +0200
@@ -56,6 +56,7 @@ asm( " .section .ctors,\"aw\",@progbits\
#else
" .long -1\n"
#endif
+ " .section .text\n"
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment