Skip to content

Commit dfccee6

Browse files
committed
FreeBSD: Disable missing reflection metadata tests
LLD relocates some of the metadata sections resulting in bad offsets at runtime. The workaround is to pass `-no-rosegment` to the linker invocation. rdar://159139154
1 parent cc4f323 commit dfccee6

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/Reflection/capture_descriptors.sil

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
// RUN: %target-build-swift %s -emit-module -emit-library -module-name capture_descriptors -o %t/capture_descriptors%{target-shared-library-suffix} -L%t/../../.. -lBlocksRuntime
1010
// RUN: %target-swift-reflection-dump %t/capture_descriptors%{target-shared-library-suffix} | %FileCheck %s
1111

12+
// lld on FreeBSD relocates some of the metadata sections resulting in invalid
13+
// offsets in section headers, breaking the Swift reflection data ELF parser
14+
// resulting in missing metadata.
15+
// rdar://159139154
16+
// XFAIL: OS=freebsd
17+
1218
sil_stage canonical
1319

1420
import Builtin

test/Reflection/typeref_decoding_imported.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323

2424
// UNSUPPORTED: OS=linux-android, OS=linux-androideabi
2525

26+
// lld on FreeBSD relocates some of the metadata sections resulting in invalid
27+
// offsets in section headers, breaking the Swift reflection data ELF parser
28+
// resulting in missing metadata.
29+
// rdar://159139154
30+
// XFAIL: OS=freebsd
31+
2632
// CHECK-32: FIELDS:
2733
// CHECK-32: =======
2834
// CHECK-32: TypesToReflect.HasCTypes

0 commit comments

Comments
 (0)