Skip to content

Commit 9c321c0

Browse files
authored
Merge pull request #61931 from al45tair/eng/PR-101749382-take2
Remove erroneous ELF note.
2 parents a4c1c10 + 26ded3f commit 9c321c0

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

stdlib/public/runtime/ImageInspectionCommon.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@
4242

4343
#else
4444

45-
#if defined(__ELF__)
46-
#define SWIFT_REFLECTION_METADATA_ELF_NOTE_MAGIC_STRING "swift_reflection_metadata_magic_string"
47-
#endif // defined(__ELF__)
48-
4945
#include "swift/shims/Visibility.h"
5046
#include <cstdint>
5147
#include <cstddef>

stdlib/public/runtime/SwiftRT-ELF.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,3 @@ static void swift_image_constructor() {
8383

8484
swift_addNewDSOImage(&sections);
8585
}
86-
87-
__asm__(".section \".note.swift_reflection_metadata\", \"aw\"");
88-
89-
static __attribute__((__used__))
90-
__attribute__((__section__(".note.swift_reflection_metadata")))
91-
__attribute__((__aligned__(1)))
92-
struct {
93-
const char MagicString[sizeof(SWIFT_REFLECTION_METADATA_ELF_NOTE_MAGIC_STRING)];
94-
const swift::MetadataSections *Sections;
95-
} __attribute__((__packed__))
96-
Note = {SWIFT_REFLECTION_METADATA_ELF_NOTE_MAGIC_STRING, &sections};

0 commit comments

Comments
 (0)