mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-07 05:31:03 +02:00
guix: enable SSP for RISC-V glibc (2.27)
Pass `--enable-stack-protector=all` when building the glibc used for the RISC-V toolchain, to enable stack smashing protection on all functions, in the glibc code.
This commit is contained in:
parent
62c864605a
commit
3897a131d0
@ -520,6 +520,9 @@ inspecting signatures in Mach-O binaries.")
|
|||||||
(define (make-glibc-without-werror glibc)
|
(define (make-glibc-without-werror glibc)
|
||||||
(package-with-extra-configure-variable glibc "enable_werror" "no"))
|
(package-with-extra-configure-variable glibc "enable_werror" "no"))
|
||||||
|
|
||||||
|
(define (make-glibc-with-stack-protector glibc)
|
||||||
|
(package-with-extra-configure-variable glibc "--enable-stack-protector" "all"))
|
||||||
|
|
||||||
(define-public glibc-2.24
|
(define-public glibc-2.24
|
||||||
(package
|
(package
|
||||||
(inherit glibc-2.31)
|
(inherit glibc-2.31)
|
||||||
@ -607,7 +610,7 @@ inspecting signatures in Mach-O binaries.")
|
|||||||
((string-contains target "-linux-")
|
((string-contains target "-linux-")
|
||||||
(list (cond ((string-contains target "riscv64-")
|
(list (cond ((string-contains target "riscv64-")
|
||||||
(make-bitcoin-cross-toolchain target
|
(make-bitcoin-cross-toolchain target
|
||||||
#:base-libc (make-glibc-without-werror glibc-2.27/bitcoin-patched)))
|
#:base-libc (make-glibc-with-stack-protector (make-glibc-without-werror glibc-2.27/bitcoin-patched))))
|
||||||
(else
|
(else
|
||||||
(make-bitcoin-cross-toolchain target)))))
|
(make-bitcoin-cross-toolchain target)))))
|
||||||
((string-contains target "darwin")
|
((string-contains target "darwin")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user