Skip to content

Commit

Permalink
bugfix: fix elf executable relocate flag
Browse files Browse the repository at this point in the history
  • Loading branch information
park671 committed Nov 6, 2024
1 parent c86e81a commit 8fe3802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator/assembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void generateTargetFile(

Elf64_Shdr *shstrtabSectionHeader = createSectionHeader(SHSTRTAB_SECTION_IDX,
SHT_STRTAB,
SHF_STRINGS,
SHF_STRINGS | SHF_ALLOC,
currentOffset,
currentOffset,
52,
Expand All @@ -80,7 +80,7 @@ void generateTargetFile(
int sectionHeaderOffset = programHeaderOffset + (sizeof(Elf64_Phdr) * programHeaderCount);


Elf64_Ehdr *elfHeader = createElfHeader(ET_EXEC,
Elf64_Ehdr *elfHeader = createElfHeader(ET_DYN,
EM_AARCH64,
programEntry,
programHeaderOffset,
Expand Down

0 comments on commit 8fe3802

Please sign in to comment.