artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
befbace
)
Explicitly mark the text LOAD as FLAGS(5), meaning RX, with a comment.
author
deraadt
<deraadt@openbsd.org>
Fri, 10 Feb 2023 03:22:12 +0000
(
03:22
+0000)
committer
deraadt
<deraadt@openbsd.org>
Fri, 10 Feb 2023 03:22:12 +0000
(
03:22
+0000)
This is the default value of the linker, but I really like placing the
comment "architecturally required data islands".
libexec/ld.so/sh/ld.script
patch
|
blob
|
history
diff --git
a/libexec/ld.so/sh/ld.script
b/libexec/ld.so/sh/ld.script
index
1b84e5b
..
1842ee9
100644
(file)
--- a/
libexec/ld.so/sh/ld.script
+++ b/
libexec/ld.so/sh/ld.script
@@
-1,7
+1,7
@@
PHDRS
{
rodata PT_LOAD FILEHDR PHDRS FLAGS (4);
- text PT_LOAD
;
+ text PT_LOAD
FLAGS (5); /* architecturally required data islands */
btext PT_LOAD FLAGS (0x08000005);
data PT_LOAD;
random PT_OPENBSD_RANDOMIZE;