Skip to content

Commit ec25e40

Browse files
Match .debug_* instead of .debug* in fallback pattern.
1 parent 0d931fb commit ec25e40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/Driver/ToolChains/PS4CPU.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ void tools::PS5cpu::Linker::ConstructJob(Compilation &C, const JobAction &JA,
261261
// time with specific tombstones, such that they're recognisable by the
262262
// PlayStation debugger.
263263
CmdArgs.push_back("-z");
264-
CmdArgs.push_back("dead-reloc-in-nonalloc=.debug*=0xffffffffffffffff");
264+
CmdArgs.push_back("dead-reloc-in-nonalloc=.debug_*=0xffffffffffffffff");
265265
CmdArgs.push_back("-z");
266266
CmdArgs.push_back(
267267
"dead-reloc-in-nonalloc=.debug_ranges=0xfffffffffffffffe");

clang/test/Driver/ps5-linker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// CHECK-Z: {{ld(\.exe)?}}"
2222
// CHECK-Z-SAME: "-z" "now"
2323
// CHECK-Z-SAME: "-z" "start-stop-visibility=hidden"
24-
// CHECK-Z-SAME: "-z" "dead-reloc-in-nonalloc=.debug*=0xffffffffffffffff"
24+
// CHECK-Z-SAME: "-z" "dead-reloc-in-nonalloc=.debug_*=0xffffffffffffffff"
2525
// CHECK-Z-SAME: "-z" "dead-reloc-in-nonalloc=.debug_ranges=0xfffffffffffffffe"
2626
// CHECK-Z-SAME: "-z" "dead-reloc-in-nonalloc=.debug_loc=0xfffffffffffffffe"
2727

0 commit comments

Comments
 (0)