Skip to content

Commit

Permalink
Merge pull request #2 from JANlittle/main
Browse files Browse the repository at this point in the history
Fix elf_info type in xzre.h and add new function match in xzre.lds
  • Loading branch information
smx-smx authored Apr 6, 2024
2 parents fd017fc + e4f0083 commit 4f30d5e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion xzre.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,13 @@ typedef struct __attribute__((packed)) elf_info {
* page-aligned virtual size of the first executable ELF segment
*/
u64 code_segment_size;
PADDING(0x28);

u64 rodata_segment_start;
u64 rodata_segment_size;
u64 data_segment_start;
u64 data_segment_size;
u64 is_data_segment_aligned;

u8 flags;
PADDING(7);
/**
Expand Down
6 changes: 6 additions & 0 deletions xzre.lds
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ SECTIONS {
"elf_get_code_segment" = ".";
*(.text.lzma_check_updata);

"elf_get_rodata_segment" = ".";
*(.text.index_tree_appena);

"elf_get_data_segment" = ".";
*(.text.microlzma_decoda);

"elf_get_plt_symbol" = ".";
*(.text.delta_coder_ena);

Expand Down

0 comments on commit 4f30d5e

Please sign in to comment.