[CRIU] [PATCH 12/16] ppc64: pie -- Move the TOC in its own section

Cyrill Gorcunov gorcunov at openvz.org
Thu Jun 4 14:04:13 PDT 2015


From: Laurent Dufour <ldufour at linux.vnet.ibm.com>

PowerPC linking requires the TOC to be in its own section
and to be aligned.

Signed-off-by: Laurent Dufour <ldufour at linux.vnet.ibm.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 pie/pie-reloc.lds.S.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pie/pie-reloc.lds.S.in b/pie/pie-reloc.lds.S.in
index 672a6af90a41..051d1d42740d 100644
--- a/pie/pie-reloc.lds.S.in
+++ b/pie/pie-reloc.lds.S.in
@@ -13,6 +13,9 @@ SECTIONS
 	.rodata : {
 		*(.rodata*)
 		*(.got*)
+	}
+
+	.toc : ALIGN(8) {
 		*(.toc*)
 	}
 
-- 
2.4.2



More information about the CRIU mailing list