File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -840,8 +840,6 @@ enum RankFlags {
840
840
RF_NOT_RELRO = 1 << 9 ,
841
841
RF_NOT_TLS = 1 << 8 ,
842
842
RF_BSS = 1 << 7 ,
843
- RF_PPC_NOT_TOCBSS = 1 << 6 ,
844
- RF_PPC_TOCL = 1 << 5 ,
845
843
RF_PPC_TOC = 1 << 4 ,
846
844
RF_PPC_GOT = 1 << 3 ,
847
845
RF_PPC_BRANCH_LT = 1 << 2 ,
@@ -943,16 +941,8 @@ static unsigned getSectionRank(const OutputSection &osec) {
943
941
// PPC64 has a number of special SHT_PROGBITS+SHF_ALLOC+SHF_WRITE sections
944
942
// that we would like to make sure appear is a specific order to maximize
945
943
// their coverage by a single signed 16-bit offset from the TOC base
946
- // pointer. Conversely, the special .tocbss section should be first among
947
- // all SHT_NOBITS sections. This will put it next to the loaded special
948
- // PPC64 sections (and, thus, within reach of the TOC base pointer).
944
+ // pointer.
949
945
StringRef name = osec.name ;
950
- if (name != " .tocbss" )
951
- rank |= RF_PPC_NOT_TOCBSS;
952
-
953
- if (name == " .toc1" )
954
- rank |= RF_PPC_TOCL;
955
-
956
946
if (name == " .toc" )
957
947
rank |= RF_PPC_TOC;
958
948
You can’t perform that action at this time.
0 commit comments