File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -450,9 +450,6 @@ class MCAssembler {
450
450
}
451
451
452
452
void addFileName (StringRef FileName) {
453
- for (const std::pair<std::string, size_t > &F : FileNames)
454
- if (F.first == FileName)
455
- return ;
456
453
FileNames.emplace_back (std::string (FileName), Symbols.size ());
457
454
}
458
455
Original file line number Diff line number Diff line change @@ -725,7 +725,6 @@ void ELFWriter::computeSymbolTable(
725
725
StrTabBuilder.finalize ();
726
726
727
727
// Symbols are required to be in lexicographic order.
728
- // array_pod_sort(LocalSymbolData.begin(), LocalSymbolData.end());
729
728
array_pod_sort (ExternalSymbolData.begin (), ExternalSymbolData.end ());
730
729
731
730
// Make the first STT_FILE precede previous local symbols.
Original file line number Diff line number Diff line change 10
10
# CHECK-NEXT: 7: 0000000000000000 0 NOTYPE LOCAL DEFAULT 6 local1
11
11
# CHECK-NEXT: 8: 0000000000000000 0 SECTION LOCAL DEFAULT 8 bar1
12
12
# CHECK-NEXT: 9: 0000000000000000 0 NOTYPE LOCAL DEFAULT 8 local2
13
- # CHECK-NEXT: 10: 0000000000000000 0 NOTYPE GLOBAL DEFAULT 6 bar.c
14
- # CHECK-NEXT: 11: 0000000000000008 0 NOTYPE GLOBAL DEFAULT 2 foo.c
13
+ # CHECK-NEXT: 10: 0000000000000000 0 FILE LOCAL DEFAULT ABS bar.c
14
+ # CHECK-NEXT: 11: 0000000000000000 0 NOTYPE GLOBAL DEFAULT 6 bar.c
15
+ # CHECK-NEXT: 12: 0000000000000008 0 NOTYPE GLOBAL DEFAULT 2 foo.c
15
16
16
17
.quad .text
17
18
@@ -34,3 +35,6 @@ local1:
34
35
.section bar1,"a"
35
36
local2:
36
37
.quad bar1
38
+
39
+ ## STT_FILE symbols of the same name are not de-duplicated.
40
+ .file "bar.c"
You can’t perform that action at this time.
0 commit comments