[0/2] LoongArch: relaxation optimization

Message ID 20241012034356.2957334-1-mengqinggang@loongson.cn
Headers
Series LoongArch: relaxation optimization |

Message

mengqinggang Oct. 12, 2024, 3:43 a.m. UTC
  The symbol value is only calculated when the relocation can be relaxed.

Add more relaxation support for call36

mengqinggang (2):
  LoongArch: Optimize the relaxation process
  LoongArch: Add more relaxation support for call36

 bfd/elfnn-loongarch.c                         | 302 +++++++++---------
 .../ld-loongarch-elf/relax-call36-exe.s       |  32 ++
 .../ld-loongarch-elf/relax-call36-so.s        |  35 ++
 ld/testsuite/ld-loongarch-elf/relax.exp       | 105 ++++++
 4 files changed, 329 insertions(+), 145 deletions(-)
 create mode 100644 ld/testsuite/ld-loongarch-elf/relax-call36-exe.s
 create mode 100644 ld/testsuite/ld-loongarch-elf/relax-call36-so.s