public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add new relocation R_LARCH_CALL36
@ 2023-12-14  6:39 mengqinggang
  2023-12-14  6:39 ` [PATCH v2 1/2] LoongArch: " mengqinggang
  2023-12-14  6:39 ` [PATCH v2 2/2] LoongArch: Add call36 and tail36 pseudo instructions for medium code model mengqinggang
  0 siblings, 2 replies; 3+ messages in thread
From: mengqinggang @ 2023-12-14  6:39 UTC (permalink / raw)
  To: binutils
  Cc: xuchenghua, chenglulu, liuzhensong, cailulu, xry111, i.swmail,
	maskray, luweining, wanglei, hejinyang, mengqinggang

R_LARCH_CALL36 is used for medium code model function call
pcaddu18i+jirl, and these two instructions must adjacent.

Add call36 and tail36 pseudo instructions.

Changes from v1 t0 v2:
  call func -> call36 func
  tail func -> tail36 $t0, func

mengqinggang (2):
  LoongArch: Add new relocation R_LARCH_CALL36
  LoongArch: Add call36 and tail36 pseudo instructions for medium code
    model

 bfd/bfd-in2.h                                 |  1 +
 bfd/elfnn-loongarch.c                         | 19 ++++++++++-----
 bfd/elfxx-loongarch.c                         | 24 +++++++++++++++++++
 bfd/libbfd.h                                  |  1 +
 bfd/reloc.c                                   |  3 +++
 gas/config/tc-loongarch.c                     |  6 ++++-
 gas/testsuite/gas/loongarch/medium-call.d     | 21 ++++++++++++++++
 gas/testsuite/gas/loongarch/medium-call.s     |  8 +++++++
 include/elf/loongarch.h                       |  2 ++
 .../ld-loongarch-elf/ld-loongarch-elf.exp     | 12 ++++++++++
 ld/testsuite/ld-loongarch-elf/medium-call.s   |  9 +++++++
 opcodes/loongarch-opc.c                       | 11 +++++++++
 12 files changed, 110 insertions(+), 7 deletions(-)
 create mode 100644 gas/testsuite/gas/loongarch/medium-call.d
 create mode 100644 gas/testsuite/gas/loongarch/medium-call.s
 create mode 100644 ld/testsuite/ld-loongarch-elf/medium-call.s

-- 
2.36.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-14  6:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-14  6:39 [PATCH v2 0/2] Add new relocation R_LARCH_CALL36 mengqinggang
2023-12-14  6:39 ` [PATCH v2 1/2] LoongArch: " mengqinggang
2023-12-14  6:39 ` [PATCH v2 2/2] LoongArch: Add call36 and tail36 pseudo instructions for medium code model mengqinggang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).