projects
/
slink.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acb065e
)
Fixed ELF sh_flags
author
Robert Pengelly
<robertapengelly@hotmail.com>
Thu, 6 Nov 2025 07:20:22 +0000
(07:20 +0000)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Thu, 6 Nov 2025 07:20:22 +0000
(07:20 +0000)
elf.c
patch
|
blob
|
history
diff --git
a/elf.c
b/elf.c
index 7accc07fbf0517d64c7c8ed440f1b1f9474cca02..121c552858fd974b777b39e5c9da483d271f8b73 100644
(file)
--- a/
elf.c
+++ b/
elf.c
@@
-1294,11
+1294,11
@@
static uint32_t translate_section_flags_to_sh_flags (uint32_t flags) {
sh_flags |= SHF_WRITE;
}
- if (flags & SECTION_FLAG_
CODE
) {
+ if (flags & SECTION_FLAG_
ALLOC
) {
sh_flags |= SHF_ALLOC;
}
- if (
!(flags & SECTION_FLAG_NOREAD)
) {
+ if (
flags & SECTION_FLAG_CODE
) {
sh_flags |= SHF_EXEC_INSTR;
}