Skip to content

Commit

Permalink
Attempt to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Jan 4, 2025
1 parent 3234d88 commit 01103ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/arch-loongarch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ void shrink_section(Context<E> &ctx, InputSection<E> &isec, bool use_rvc) {

auto remove = [&](u32 d) {
u32 sum = deltas.empty() ? 0 : deltas.back().delta;
deltas.emplace_back((u32)r.r_offset, sum + d);
deltas.push_back(RelocDelta{(u32)r.r_offset, sum + d});
};

// A R_LARCH_ALIGN relocation refers to the beginning of a nop
Expand Down
2 changes: 1 addition & 1 deletion src/arch-riscv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ void shrink_section(Context<E> &ctx, InputSection<E> &isec, bool use_rvc) {

auto remove = [&](u32 d) {
u32 sum = deltas.empty() ? 0 : deltas.back().delta;
deltas.emplace_back((u32)r.r_offset, sum + d);
deltas.push_back(RelocDelta{(u32)r.r_offset, sum + d});
};

// Handling R_RISCV_ALIGN is mandatory.
Expand Down

0 comments on commit 01103ed

Please sign in to comment.