From 12fcede7f55550bb36f2e5fc150661efb39307d3 Mon Sep 17 00:00:00 2001 From: Bill Schmidt Date: Thu, 14 May 2020 13:51:07 -0500 Subject: [PATCH] Don't give agency to the linker Fixes #96. Signed-off-by: Bill Schmidt --- specification/ch_2.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/specification/ch_2.xml b/specification/ch_2.xml index 716434e..8490dc7 100644 --- a/specification/ch_2.xml +++ b/specification/ch_2.xml @@ -6949,10 +6949,13 @@ lvx v1, 0, r10 entry point when the r2 register is known to hold a valid TOC base value. Function pointers shared between modules shall always use the global entry point to specify the address of a function. - When a linker causes control to transfer to a global entry point + When a linker causes + control to transferWhen + control is transferred to a global entry point of a function that also has a local entry - point, - it must insert a glue code sequence that loads r12 with the global + point, it + the linker must insert a + glue code sequence that loads r12 with the global entry-point address. Code at the global entry point of a function that also has a local entry point can assume that