OSDN Git Service

[mips] Implement generation of relocations "chains" used by N32 ABI
authorSimon Atanasyan <simon@atanasyan.com>
Thu, 21 Sep 2017 14:04:53 +0000 (14:04 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Thu, 21 Sep 2017 14:04:53 +0000 (14:04 +0000)
commitcff5a9f329b7914580d9599a917db1ddcd562f73
tree8b6be0b0c388a38ef683a581f0b3fa31fdd84fc1
parentfdc1645b20c6235bb359b686d8a5917a62fe9212
[mips] Implement generation of relocations "chains" used by N32 ABI

In case of using a "nested" relocation expressions like this
`%hi(%neg(%gp_rel()))`, N32 ABI requires generation of three consecutive
relocations. That differs from the N64 ABI case where all relocations
are packed into the single relocation record.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313879 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/ELFObjectWriter.cpp
test/MC/Mips/elf-N32.s [new file with mode: 0644]