[lld][ELF] Support relocation R_AVR_LDS_STS_16 on AVRTiny devices
authorBen Shi <powerman1st@163.com>
Mon, 12 Dec 2022 03:40:57 +0000 (11:40 +0800)
committerBen Shi <powerman1st@163.com>
Sun, 1 Jan 2023 08:47:51 +0000 (16:47 +0800)
commitb20dd2b186fdc76828219b705a2b58f5830f4b9d
treed6ac93ec8333149a233a063d8283e94cd2c9c5e4
parent2679e8bba3e166e3174971d040b9457ec7b7d768
[lld][ELF] Support relocation R_AVR_LDS_STS_16 on AVRTiny devices

The relocation 'R_AVR_LDS_STS_16' is introduced for the compact
16-bit LDS/STS instructions on AVRTiny devices.

Reviewed By: MaskRay, aykevl

Differential Revision: https://reviews.llvm.org/D139807
lld/ELF/Arch/AVR.cpp
lld/test/ELF/avr-reloc.s