15 lines
422 B
Text
15 lines
422 B
Text
|
- Don't create IBT .plt if there are no PLT entries. Cherry picked from
|
||
|
upstream.
|
||
|
|
||
|
Index: tools/lld/ELF/SyntheticSections.h
|
||
|
--- tools/lld/ELF/SyntheticSections.h.orig
|
||
|
+++ tools/lld/ELF/SyntheticSections.h
|
||
|
@@ -769,6 +769,7 @@ class IBTPltSection : public SyntheticSection {
|
||
|
public:
|
||
|
IBTPltSection();
|
||
|
void writeTo(uint8_t *Buf) override;
|
||
|
+ bool isNeeded() const override;
|
||
|
size_t getSize() const override;
|
||
|
};
|
||
|
|