Skip to content

Commit

Permalink
Revert "Do not write to an atomic variable too often"
Browse files Browse the repository at this point in the history
This reverts commit 39a25e2.
  • Loading branch information
rui314 committed Oct 13, 2023
1 parent 39a25e2 commit 01cd5d1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions elf/arch-ppc64v2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,6 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {

this->reldyn_offset = file.num_dynrel * sizeof(ElfRel<E>);
std::span<const ElfRel<E>> rels = get_rels(ctx);
bool is_power10 = false;

// Scan relocations
for (i64 i = 0; i < rels.size(); i++) {
Expand Down Expand Up @@ -431,7 +430,7 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {
case R_PPC64_REL24_NOTOC:
if (sym.is_imported)
sym.flags |= NEEDS_PLT;
is_power10 = true;
ctx.extra.is_power10 = true;
break;
case R_PPC64_PLT16_HA:
case R_PPC64_PLT_PCREL34:
Expand Down Expand Up @@ -482,9 +481,6 @@ void InputSection<E>::scan_relocations(Context<E> &ctx) {
Error(ctx) << *this << ": unknown relocation: " << rel;
}
}

if (is_power10 && !ctx.extra.is_power10)
ctx.extra.is_power10 = true;
}

template <>
Expand Down

0 comments on commit 01cd5d1

Please sign in to comment.