From a291dbc8f8e5fa57b4cf84757ce5f29f2d10230f Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 11 Jan 2023 15:14:01 +0000 Subject: [PATCH] the kernel on mips64 (octeon, loongson) is in good enough shape to run --execute-only ld.so (meaning FLAGS (1) on the LOAD line for the text segment, in the ld.script). the linker, when using built-in linker scripts, is not ready yet for other libraries / binaries.. --- libexec/ld.so/mips64/ld.script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/ld.so/mips64/ld.script b/libexec/ld.so/mips64/ld.script index 2c141a6c22b..63d114facca 100644 --- a/libexec/ld.so/mips64/ld.script +++ b/libexec/ld.so/mips64/ld.script @@ -1,7 +1,7 @@ PHDRS { rodata PT_LOAD FILEHDR PHDRS FLAGS (4); - text PT_LOAD; + text PT_LOAD FLAGS (1); btext PT_LOAD FLAGS (0x08000005); data PT_LOAD; random PT_OPENBSD_RANDOMIZE; -- 2.20.1