summaryrefslogtreecommitdiff
path: root/lld/ELF/Writer.h
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2017-11-13 22:40:36 +0000
committerSimon Atanasyan <simon@atanasyan.com>2017-11-13 22:40:36 +0000
commit67bed43c985dd82133375bcc90636b4ffa014e08 (patch)
treef31e771a816c385e216f1bc44d5b9d42c29ec2f5 /lld/ELF/Writer.h
parentd5eacdfd422748fc1831ffc3347ddffaf90bacb6 (diff)
[MIPS] Set STO_MIPS_MICROMIPS flag and less-significant bit for microMIPS symbols
microMIPS symbols including microMIPS PLT records created for regular symbols needs to be marked by STO_MIPS_MICROMIPS flag in a symbol table. Additionally microMIPS entries in a dynamic symbol table should have configured less-significant bit. That allows to escape teaching a dynamic linker about microMIPS symbols.
Diffstat (limited to 'lld/ELF/Writer.h')
-rw-r--r--lld/ELF/Writer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/ELF/Writer.h b/lld/ELF/Writer.h
index 7354319d508..9f6cff36f30 100644
--- a/lld/ELF/Writer.h
+++ b/lld/ELF/Writer.h
@@ -54,6 +54,7 @@ uint8_t getMipsFpAbiFlag(uint8_t OldFlag, uint8_t NewFlag,
llvm::StringRef FileName);
bool isMipsN32Abi(const InputFile *F);
+bool isMicroMips();
bool isMipsR6();
} // namespace elf
} // namespace lld