Skip to content

Commit

Permalink
Take sentinel into account when estimating section size
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Feb 9, 2025
1 parent 8b08985 commit 143d447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch-arm32.cc
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ void create_arm_exidx_section(Context<E> &ctx) {

void Arm32ExidxSection::compute_section_size(Context<E> &ctx) {
output_section.compute_section_size(ctx);
this->shdr.sh_size = output_section.shdr.sh_size;
this->shdr.sh_size = output_section.shdr.sh_size + 8; // +8 for sentinel
}

void Arm32ExidxSection::update_shdr(Context<E> &ctx) {
Expand Down

0 comments on commit 143d447

Please sign in to comment.