32 bool IsPCRel)
const override;
42 switch ((
unsigned) Fixup.
getKind()) {
47 return ELF::R_AVR_16_PM;
51 return ELF::R_AVR_7_PCREL;
53 return ELF::R_AVR_13_PCREL;
57 return ELF::R_AVR_16_PM;
59 return ELF::R_AVR_LO8_LDI;
61 return ELF::R_AVR_HI8_LDI;
63 return ELF::R_AVR_HH8_LDI;
65 return ELF::R_AVR_LO8_LDI_NEG;
67 return ELF::R_AVR_HI8_LDI_NEG;
69 return ELF::R_AVR_HH8_LDI_NEG;
71 return ELF::R_AVR_LO8_LDI_PM;
73 return ELF::R_AVR_HI8_LDI_PM;
75 return ELF::R_AVR_HH8_LDI_PM;
77 return ELF::R_AVR_LO8_LDI_PM_NEG;
79 return ELF::R_AVR_HI8_LDI_PM_NEG;
81 return ELF::R_AVR_HH8_LDI_PM_NEG;
83 return ELF::R_AVR_CALL;
85 return ELF::R_AVR_LDI;
89 return ELF::R_AVR_6_ADIW;
91 return ELF::R_AVR_MS8_LDI;
93 return ELF::R_AVR_MS8_LDI_NEG;
95 return ELF::R_AVR_LO8_LDI_GS;
97 return ELF::R_AVR_HI8_LDI_GS;
101 return ELF::R_AVR_8_LO8;
103 return ELF::R_AVR_8_HI8;
105 return ELF::R_AVR_8_HLO8;
107 return ELF::R_AVR_SYM_DIFF;
109 return ELF::R_AVR_16_LDST;
111 return ELF::R_AVR_LDS_STS_16;
113 return ELF::R_AVR_PORT6;
115 return ELF::R_AVR_PORT5;
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a negated 16-bi...
This represents an "assembler immediate".
Replaces the immediate operand of a 16-bit Rd, K instruction with the lower 8 bits of a 16-bit progra...
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a negated 16-bi...
Defines the object file and target independent interfaces used by the assembler backend to write nati...
Replaces the immediate operand of a 16-bit Rd, K instruction with the lower 8 bits of a negated 16-bi...
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a negated negat...
Replaces the immediate operand of a 16-bit Rd, K instruction with the lower 8 bits of a 16-bit value ...
A 12-bit PC-relative fixup for the family of branches which take 12-bit targets (RJMP,RCALL,etc).
Context object for machine code objects.
A 7-bit PC-relative fixup for the family of conditional branches which take 7-bit targets (BRNE...
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a negated negat...
Function Alias Analysis false
unsigned getRelocType(MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup, bool IsPCRel) const override
A symbol+addr fixup for the `LDD <x>+<n>, <r>" family of instructions.
AVRELFObjectWriter(uint8_t OSABI)
A 16-bit program memory address.
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a 16-bit progra...
MCFixupKind getKind() const
virtual ~AVRELFObjectWriter()
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
Fixup to calculate the difference between two symbols.
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a negated 24-bi...
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a 16-bit value ...
MCObjectWriter * createAVRELFObjectWriter(raw_pwrite_stream &OS, uint8_t OSABI)
Creates an ELF object writer for AVR.
Writes AVR machine code into an ELF32 object file.
Target - Wrapper for Target specific information.
MCObjectWriter * createELFObjectWriter(MCELFObjectTargetWriter *MOTW, raw_pwrite_stream &OS, bool IsLittleEndian)
Construct a new ELF writer instance.
Replaces the immediate operand of a 16-bit Rd, K instruction with the lower 8 bits of a negated 16-bi...
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a 32-bit value ...
An abstract base class for streams implementations that also support a pwrite operation.
A 22-bit fixup for the target of a CALL k or JMP k instruction.
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a 24-bit progra...
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a 24-bit value ...
Replaces the 8-bit immediate with another value.