2023-08-16 22:26:55 +00:00
|
|
|
- Don't create IBT .plt if there are no PLT entries. Cherry picked from
|
|
|
|
upstream.
|
|
|
|
|
2023-09-08 05:21:37 +00:00
|
|
|
Index: lld/ELF/SyntheticSections.h
|
|
|
|
--- lld/ELF/SyntheticSections.h.orig
|
|
|
|
+++ lld/ELF/SyntheticSections.h
|
2023-08-16 22:26:55 +00:00
|
|
|
@@ -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;
|
|
|
|
};
|
|
|
|
|