[ARC] Add linker relaxation.
authorClaudiu Zissulescu <claziss@gmail.com>
Wed, 24 Jul 2019 13:33:29 +0000 (16:33 +0300)
committerClaudiu Zissulescu <claziss@gmail.com>
Wed, 24 Jul 2019 13:33:29 +0000 (16:33 +0300)
commitef551643dc282159185cb9916c7cb0308ae03cdd
tree90007b800835a19087ca4580e7a061ca5dad491e
parentc54e42531adb7bf8d58bd4c3c8e0c710305959e1
[ARC] Add linker relaxation.

Add linker relaxation. The first relaxation added is converting
GOTPC32 to PCREL relocations. This relaxation doesn't change the size of
the binary.

bfd/
xxxx-xx-xx  Claudiu Zissulescu  <claziss@synopsys.com>

* elf32-arc.c (bfd_get_32_me): New function.
(bfd_put_32_me): Likewise.
(arc_elf_relax_section): Likewise.
(bfd_elf32_bfd_relax_section): Define.

ld/testsuite/
xxxx-xx-xx  Claudiu Zissulescu  <claziss@synopsys.com>

* ld-arc/relax-local-pic.d: New test.
* ld-arc/relax-local-pic.s: New file.
bfd/ChangeLog
bfd/elf32-arc.c
ld/ChangeLog
ld/testsuite/ld-arc/relax-local-pic.d [new file with mode: 0644]
ld/testsuite/ld-arc/relax-local-pic.s [new file with mode: 0644]
This page took 0.024042 seconds and 4 git commands to generate.