llvm.org GIT mirror llvm / c1d8a15
[PowerPC] Force entry alignment in .got2 Implement Bill's suggested fix for 32-bit targets for PR22711 (for the alignment of each entry). As pointed out in the bug report, we could just force the section alignment, since we only add pointer-sized things currently, but this fix is somewhat more future-proof. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280049 91177308-0d34-0410-b5e6-96231b3b80d8 Hal Finkel 3 years ago
2 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
11451145 E = TOC.end(); I != E; ++I) {
11461146 OutStreamer->EmitLabel(I->second);
11471147 MCSymbol *S = I->first;
1148 if (isPPC64)
1148 if (isPPC64) {
11491149 TS.emitTCEntry(*S);
1150 else
1150 } else {
1151 OutStreamer->EmitValueToAlignment(4);
11511152 OutStreamer->EmitSymbolValue(S, 4);
1153 }
11521154 }
11531155 }
11541156
2525 ; LARGE-BSS-DAG: stw {{[0-9]+}}, 8(1)
2626 ; LARGE-BSS: lwz 30, -8(1)
2727 ; LARGE-BSS: [[VREF]]:
28 ; LARGE-BSS-NEXT: .p2align 2
2829 ; LARGE-BSS-NEXT: .long bar