diff options
-rw-r--r-- | bfd/elfnn-riscv.c | 6 | ||||
-rw-r--r-- | ld/emultempl/riscvelf.em | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bfd/elfnn-riscv.c b/bfd/elfnn-riscv.c index 4a5da7d..c2604de 100644 --- a/bfd/elfnn-riscv.c +++ b/bfd/elfnn-riscv.c @@ -4754,9 +4754,9 @@ bfd_elfNN_riscv_set_data_segment_info (struct bfd_link_info *info, /* Relax a section. - Pass 0: Shortens code sequences for LUI/CALL/TPREL/PCREL relocs. - Pass 1: Deletes the bytes that PCREL relaxation in pass 0 made obsolete. - Pass 2: Which cannot be disabled, handles code alignment directives. */ + Pass 0: Shortens code sequences for LUI/CALL/TPREL/PCREL relocs and + deletes the obsolete bytes. + Pass 1: Which cannot be disabled, handles code alignment directives. */ static bool _bfd_riscv_relax_section (bfd *abfd, asection *sec, diff --git a/ld/emultempl/riscvelf.em b/ld/emultempl/riscvelf.em index b7435d6..b12d150 100644 --- a/ld/emultempl/riscvelf.em +++ b/ld/emultempl/riscvelf.em @@ -42,7 +42,7 @@ riscv_elf_before_allocation (void) ENABLE_RELAXATION; } - link_info.relax_pass = 3; + link_info.relax_pass = 2; } static void |