@@ -31,18 +31,17 @@ packed-remapped-object-scope:
31
31
# binary contains remapped paths
32
32
# FIXME: As of 2023-12, `OSO` cannot be trimmed. See rust-lang/rust#116948
33
33
(! grep --text $(REMAPPED_OUT) $(TMPDIR)/foo) || exit 1
34
- # FIXME: `SO` in the root debuginfo compile unit didn't get trimed. See rust-lang/rust#116948
35
- (! grep --text $(REMAPPED_CWD) $(TMPDIR)/foo) || exit 1
34
+ grep --text $(REMAPPED_CWD) $(TMPDIR)/foo || exit 1
36
35
37
36
# binary contains no original paths
38
37
# FIXME: As of 2023-12, `OSO` cannot be trimmed. See rust-lang/rust#116948
39
38
grep --text $(TMPDIR) $(TMPDIR)/foo || exit 1
40
- # FIXME: `SO` in the root debuginfo compile unit didn't get trimed. See rust-lang/rust#116948
41
- grep --text $(HERE) $(TMPDIR)/foo || exit 1
39
+ (! grep --text $(HERE) $(TMPDIR)/foo) || exit 1
42
40
43
41
# dSYM bundle contains no remapped paths
44
42
(! grep --text $(REMAPPED_OUT) $(TMPDIR)/foo.dSYM/Contents/Resources/DWARF/foo) || exit 1
45
- (! grep --text $(REMAPPED_CWD) $(TMPDIR)/foo.dSYM/Contents/Resources/DWARF/foo) || exit 1
43
+ # FIXME: dSYM bundle contains `DW_AT_comp_dir` in debug symbol, which shouldn't be remapped.
44
+ grep --text $(REMAPPED_CWD) $(TMPDIR)/foo.dSYM/Contents/Resources/DWARF/foo
46
45
47
46
# dSYM bundle contains original paths
48
47
grep --text $(HERE) $(TMPDIR)/foo.dSYM/Contents/Resources/DWARF/foo || exit 1
@@ -92,22 +91,20 @@ packed-remapped-split-debuginfo-scope:
92
91
93
92
# binary contains no remapped paths
94
93
(! grep --text $(REMAPPED_OUT) $(TMPDIR)/foo) || exit 1
95
- # FIXME: binary contains `N_SO` (SO) in debug symbol, which got remapped.
96
- nm -pa $(TMPDIR)/foo | grep " SO " | grep $(REMAPPED_CWD) || exit 1
97
- nm -pa $(TMPDIR)/foo | grep --invert-match " SO " | (! grep $(REMAPPED_CWD)) || exit 1
94
+ (! grep --text $(REMAPPED_CWD) $(TMPDIR)/foo) || exit 1
98
95
99
96
# binary contains original paths
100
97
# FIXME: As of 2023-12, `OSO` cannot be trimmed. See rust-lang/rust#116948
101
98
grep --text $(TMPDIR) $(TMPDIR)/foo || exit 1
102
- # FIXME: binary contains `N_SO` (SO) in debug symbol, which got remapped.
103
- (! grep --text $(HERE) $(TMPDIR)/foo) || exit 1
99
+ grep --text $(HERE) $(TMPDIR)/foo || exit 1
104
100
105
101
# # dSYM bundle contains remapped paths
106
102
grep --text $(REMAPPED_CWD) $(TMPDIR)/foo.dSYM/Contents/Resources/DWARF/foo || exit 1
107
103
108
104
# # dSYM bundle contains no original paths
109
105
(! grep --text $(TMPDIR) $(TMPDIR)/foo.dSYM/Contents/Resources/DWARF/foo) || exit 1
110
- (! grep --text $(HERE) $(TMPDIR)/foo.dSYM/Contents/Resources/DWARF/foo) || exit 1
106
+ # FIXME: dSYM bundle contains `DW_AT_comp_dir` in debug symbol, which should be remapped.
107
+ grep --text $(HERE) $(TMPDIR)/foo.dSYM/Contents/Resources/DWARF/foo
111
108
112
109
rm -rf $(TMPDIR)/foo.dSYM
113
110
rm $(TMPDIR)/$(call BIN,foo)
@@ -129,18 +126,17 @@ unpacked-remapped-object-scope:
129
126
# binary contains remapped paths
130
127
# FIXME: As of 2023-12, `OSO` cannot be trimmed. See rust-lang/rust#116948
131
128
(! grep --text $(REMAPPED_OUT) $(TMPDIR)/foo) || exit 1
132
- # FIXME: `SO` in the root debuginfo compile unit didn't get trimed. See rust-lang/rust#116948
133
- (! grep --text $(REMAPPED_CWD) $(TMPDIR)/foo) || exit 1
129
+ grep --text $(REMAPPED_CWD) $(TMPDIR)/foo || exit 1
134
130
135
131
# binary contains no original paths
136
132
# FIXME: As of 2023-12, `OSO` cannot be trimmed. See rust-lang/rust#116948
137
133
grep --text $(TMPDIR) $(TMPDIR)/foo || exit 1
138
- # FIXME: `SO` in the root debuginfo compile unit didn't get trimed. See rust-lang/rust#116948
139
- grep --text $(HERE) $(TMPDIR)/foo || exit 1
134
+ (! grep --text $(HERE) $(TMPDIR)/foo) || exit 1
140
135
141
136
# object file contains no remapped paths
142
137
(! grep --text $(REMAPPED_OUT) $(TMPDIR)/foo.*.o) || exit 1
143
- (! grep --text $(REMAPPED_CWD) $(TMPDIR)/foo.*.o) || exit 1
138
+ # FIXME: object file contains `DW_AT_comp_dir` in debug symbol, which should be remapped.
139
+ grep --text $(REMAPPED_CWD) $(TMPDIR)/foo.*.o || exit 1
144
140
145
141
# object file contains original paths
146
142
grep --text $(HERE) $(TMPDIR)/foo.*.o || exit 1
@@ -190,21 +186,19 @@ unpacked-remapped-split-debuginfo-scope:
190
186
191
187
# binary contains no remapped paths
192
188
(! grep --text $(REMAPPED_OUT) $(TMPDIR)/foo) || exit 1
193
- # FIXME: binary contains `N_SO` (SO) in debug symbol, which got remapped.
194
- nm -pa $(TMPDIR)/foo | grep " SO " | grep $(REMAPPED_CWD) || exit 1
195
- nm -pa $(TMPDIR)/foo | grep --invert-match " SO " | (! grep $(REMAPPED_CWD)) || exit 1
189
+ (! grep --text $(REMAPPED_CWD) $(TMPDIR)/foo) || exit 1
196
190
197
191
# binary contains original paths
198
192
grep --text $(TMPDIR) $(TMPDIR)/foo || exit 1
199
- # FIXME: binary contains `N_SO` (SO) in debug symbol, which got remapped.
200
- (! grep --text $(HERE) $(TMPDIR)/foo) || exit 1
193
+ grep --text $(HERE) $(TMPDIR)/foo || exit 1
201
194
202
195
# object file contains remapped paths
203
196
grep --text $(REMAPPED_CWD) $(TMPDIR)/foo.*.o || exit 1
204
197
205
198
# object file contains no original paths
206
199
(! grep --text $(TMPDIR) $(TMPDIR)/foo.*.o) || exit 1
207
- (! grep --text $(HERE) $(TMPDIR)/foo.*.o) || exit 1
200
+ # FIXME: object file contains `DW_AT_comp_dir` in debug symbol, which should be remapped.
201
+ grep --text $(HERE) $(TMPDIR)/foo.*.o || exit 1
208
202
209
203
rm $(TMPDIR)/*.o
210
204
rm $(TMPDIR)/$(call BIN,foo)
@@ -366,14 +360,12 @@ packed-remapped-object-scope:
366
360
367
361
# binary contains remapped paths
368
362
grep --text $(REMAPPED_OUT) $(TMPDIR)/foo || exit 1
369
- # FIXME: binary contains `DW_AT_comp_dir` in debug symbol, which should be remapped.
370
- (! grep --text $(REMAPPED_CWD) $(TMPDIR)/foo) || exit 1
363
+ grep --text $(REMAPPED_CWD) $(TMPDIR)/foo || exit 1
371
364
372
365
# binary contains no original paths
373
366
(! grep --text $(TMPDIR) $(TMPDIR)/foo) || exit 1
374
- # FIXME: bnary contains `DW_AT_comp_dir` in debug symbol, which should be remapped.
375
- readelf -wi $(TMPDIR)/foo | grep "DW_AT_comp_dir" | grep $(HERE) || exit 1
376
- readelf -wi $(TMPDIR)/foo | grep --invert-match "DW_AT_comp_dir" | (! grep $(HERE)) || exit 1
367
+ # FIXME: binary contains `.debug-line` in debug symbol, which didn't get remapped.
368
+ readelf -wl $(TMPDIR)/foo | grep $(HERE) || exit 1
377
369
378
370
# dwp contains no remapped paths
379
371
(! grep --text $(REMAPPED_CWD) $(TMPDIR)/foo.dwp) || exit 1
@@ -434,14 +426,13 @@ packed-remapped-split-debuginfo-scope:
434
426
# binary contains remapped dwo path
435
427
readelf -wi $(TMPDIR)/foo | grep "DW_AT_GNU_dwo_name" | grep $(REMAPPED_OUT) || exit 1
436
428
readelf -wi $(TMPDIR)/foo | grep --invert-match "DW_AT_GNU_dwo_name" | (! grep $(REMAPPED_OUT)) || exit 1
437
- # FIXME: binary contains `DW_AT_comp_dir` in debug symbol, which got remapped.
438
- readelf -wi $(TMPDIR)/foo | grep "DW_AT_comp_dir" | grep $(REMAPPED_CWD) || exit 1
439
- readelf -wi $(TMPDIR)/foo | grep --invert-match "DW_AT_comp_dir" | (! grep $(REMAPPED_CWD) ) || exit 1
429
+ # binary contains no remapped cwd path
430
+ # FIXME: binary contains `.debug-line` in debug symbol, which got remapped.
431
+ readelf -wl $(TMPDIR)/foo | grep $(REMAPPED_CWD) || exit 1
440
432
441
433
# binary contains no original --out-dir (DW_AT_GNU_dwo_name was remapped)
442
434
(! grep --text $(TMPDIR) $(TMPDIR)/foo) || exit 1
443
- # FIXME: binary contains `DW_AT_comp_dir` in debug symbol, which got remapped.
444
- (! grep --text $(HERE) $(TMPDIR)/foo) || exit 1
435
+ grep --text $(HERE) $(TMPDIR)/foo || exit 1
445
436
446
437
# dwp contains remapped paths
447
438
grep --text $(REMAPPED_OUT) $(TMPDIR)/foo.dwp || exit 1
@@ -634,14 +625,12 @@ unpacked-remapped-object-scope-split:
634
625
635
626
# binary contains remapped paths
636
627
grep --text $(REMAPPED_OUT) $(TMPDIR)/foo || exit 1
637
- # FIXME: binary should contains no cwd but now it got `DW_AT_comp_dir`
638
- (! grep --text $(REMAPPED_CWD) $(TMPDIR)/foo) || exit 1
628
+ grep --text $(REMAPPED_CWD) $(TMPDIR)/foo || exit 1
639
629
640
630
# binary contains no original paths
641
631
(! grep --text $(TMPDIR) $(TMPDIR)/foo) || exit 1
642
- # FIXME: binary contains `DW_AT_comp_dir` in debug symbol, which didn't get remapped.
643
- readelf -wi $(TMPDIR)/foo | grep "DW_AT_comp_dir" | grep $(HERE) || exit 1
644
- readelf -wi $(TMPDIR)/foo | grep --invert-match "DW_AT_comp_dir" | (! grep $(HERE)) || exit 1
632
+ # FIXME: binary contains `.debug-line` in debug symbol, which didn't get remapped.
633
+ readelf -wl $(TMPDIR)/foo | grep $(HERE) || exit 1
645
634
646
635
# dwo contains no remapped paths
647
636
(! grep --text $(REMAPPED_CWD) $(TMPDIR)/foo.*.dwo) || exit 1
@@ -672,17 +661,16 @@ unpacked-remapped-object-scope-single:
672
661
673
662
# binary contains remapped paths
674
663
grep --text $(REMAPPED_OUT) $(TMPDIR)/foo || exit 1
675
- # FIXME: binary should contains no cwd but now it got `DW_AT_comp_dir`
676
- (! grep --text $(REMAPPED_CWD) $(TMPDIR)/foo) || exit 1
664
+ grep --text $(REMAPPED_CWD) $(TMPDIR)/foo || exit 1
677
665
678
666
# binary contains no original paths
679
667
(! grep --text $(TMPDIR) $(TMPDIR)/foo) || exit 1
680
- # FIXME: binary contains `DW_AT_comp_dir` in debug symbol, which didn't get remapped.
681
- readelf -wi $(TMPDIR)/foo | grep "DW_AT_comp_dir" | grep $(HERE) || exit 1
682
- readelf -wi $(TMPDIR)/foo | grep --invert-match "DW_AT_comp_dir" | (! grep $(HERE)) || exit 1
668
+ # FIXME: binary contains `.debug-line` in debug symbol, which didn't get remapped.
669
+ readelf -wl $(TMPDIR)/foo | grep $(HERE) || exit 1
683
670
684
671
# object file contains no remapped paths
685
- (! grep --text $(REMAPPED_CWD) $(TMPDIR)/foo.*.o) || exit 1
672
+ # FIXME: object file contains `.debug-line` in debug symbol, which didn't get remapped.
673
+ readelf -wl $(TMPDIR)/foo | grep $(HERE) || exit 1
686
674
# FIXME: object file contains `DW_AT_GNU_dwo_name` in debug symbol, which got remapped.
687
675
readelf -wi $(TMPDIR)/foo.*.o | grep "DW_AT_GNU_dwo_name" | grep $(REMAPPED_OUT) || exit 1
688
676
readelf -wi $(TMPDIR)/foo.*.o | grep --invert-match "DW_AT_GNU_dwo_name" | (! grep $(REMAPPED_OUT)) || exit 1
@@ -779,14 +767,14 @@ unpacked-remapped-split-debuginfo-scope-split:
779
767
# binary contains remapped dwo path
780
768
readelf -wi $(TMPDIR)/foo | grep "DW_AT_GNU_dwo_name" | grep $(REMAPPED_OUT) || exit 1
781
769
readelf -wi $(TMPDIR)/foo | grep --invert-match "DW_AT_GNU_dwo_name" | (! grep $(REMAPPED_OUT)) || exit 1
782
- # FIXME: binary contains `DW_AT_comp_dir` in debug symbol, which got remapped.
783
- readelf -wi $(TMPDIR)/foo | grep "DW_AT_comp_dir" | grep $(REMAPPED_CWD) || exit 1
784
- readelf -wi $(TMPDIR)/foo | grep --invert-match "DW_AT_comp_dir" | (! grep $(REMAPPED_CWD) ) || exit 1
770
+ # binary contains no remapped cwd path
771
+ # FIXME: binary contains `.debug-line` in debug symbol, which got remapped.
772
+ readelf -wl $(TMPDIR)/foo | grep $(REMAPPED_CWD) || exit 1
785
773
786
774
# binary contains no original --out-dir (DW_AT_GNU_dwo_name was remapped)
787
775
(! grep --text $(TMPDIR) $(TMPDIR)/foo) || exit 1
788
- # FIXME: binary contains `DW_AT_comp_dir` in debug symbol, which got remapped.
789
- (! grep --text $(HERE) $(TMPDIR)/foo) || exit 1
776
+ # binary contains original cwd path
777
+ grep --text $(HERE) $(TMPDIR)/foo || exit 1
790
778
791
779
# dwo contains remapped paths
792
780
grep --text $(REMAPPED_OUT) $(TMPDIR)/foo.*.dwo || exit 1
@@ -814,21 +802,22 @@ unpacked-remapped-split-debuginfo-scope-single:
814
802
# binary contains remapped dwo path
815
803
readelf -wi $(TMPDIR)/foo | grep "DW_AT_GNU_dwo_name" | grep $(REMAPPED_OUT) || exit 1
816
804
readelf -wi $(TMPDIR)/foo | grep --invert-match "DW_AT_GNU_dwo_name" | (! grep $(REMAPPED_OUT)) || exit 1
817
- # FIXME: binary contains `DW_AT_comp_dir` in debug symbol, which got remapped.
818
- readelf -wi $(TMPDIR)/foo | grep "DW_AT_comp_dir" | grep $(REMAPPED_CWD) || exit 1
819
- readelf -wi $(TMPDIR)/foo | grep --invert-match "DW_AT_comp_dir" | (! grep $(REMAPPED_CWD) ) || exit 1
805
+ # binary contains no remapped cwd path
806
+ # FIXME: binary contains `.debug-line` in debug symbol, which got remapped.
807
+ readelf -wl $(TMPDIR)/foo | grep $(REMAPPED_CWD) || exit 1
820
808
821
809
# binary contains no original --out-dir (DW_AT_GNU_dwo_name was remapped)
822
810
(! grep --text $(TMPDIR) $(TMPDIR)/foo) || exit 1
823
- # FIXME: binary contains `DW_AT_comp_dir` in debug symbol, which got remapped.
824
- (! grep --text $(HERE) $(TMPDIR)/foo) || exit 1
811
+ # binary contains original cwd path
812
+ grep --text $(HERE) $(TMPDIR)/foo || exit 1
825
813
826
814
# object file contains remapped paths
827
815
grep --text $(REMAPPED_OUT) $(TMPDIR)/foo.*.o || exit 1
828
816
829
817
# object file contains no original paths
830
818
(! grep --text $(TMPDIR) $(TMPDIR)/foo.*.o) || exit 1
831
- (! grep --text $(HERE) $(TMPDIR)/foo.*.o) || exit 1
819
+ # FIXME: object file contains `DW_AT_comp_dir` in debug symbol, which should be remapped.
820
+ grep --text $(HERE) $(TMPDIR)/foo.*.o || exit 1
832
821
833
822
rm $(TMPDIR)/*.o
834
823
ls $(TMPDIR)/*.dwo && exit 1 || exit 0
0 commit comments