Skip to content

Commit

Permalink
Do not compute per-InputSection address-taken bit for -z rewrite-endbr
Browse files Browse the repository at this point in the history
We now compute per-Symbol address-taken bit in rewrite_endbr,
so this step is not necessary anymore.
  • Loading branch information
rui314 committed Dec 2, 2023
1 parent 348f5c7 commit fe427bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elf/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ int elf_main(int argc, char **argv) {
compute_import_export(ctx);

// Set "address-taken" bits for input sections.
if (ctx.arg.icf || ctx.arg.z_rewrite_endbr)
if (ctx.arg.icf)
compute_address_significance(ctx);

// Garbage-collect unreachable sections.
Expand Down

0 comments on commit fe427bf

Please sign in to comment.