[lld] r276173 - [ELF][MIPS] Create PLT entry specific for MIPS ABI version R6

Simon Atanasyan via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 21 06:53:50 PDT 2016


On Thu, Jul 21, 2016 at 4:32 PM, Rafael EspĂ­ndola
<rafael.espindola at gmail.com> wrote:
>>    write32<E>(Buf + 4, 0x8df90000);  // l[wd] $25, %lo(.got.plt entry)($15)
>> -  write32<E>(Buf + 8, 0x03200008);  // jr    $25
>> +                                    // jr    $25
>> +  write32<E>(Buf + 8, isMipsR6<ELFT>() ? 0x03200009 : 0x03200008);
>
> Has the encoding changed for "jr $25"?

Yes.

New encoding - p. 192 https://goo.gl/Eo1YSu
Old encoding - p. 151 https://goo.gl/NjU68m

-- 
Simon Atanasyan


More information about the llvm-commits mailing list