From 34b20e804bbb340b2e98be0c66074a88795eb0c1 Mon Sep 17 00:00:00 2001 From: Bill Schmidt Date: Wed, 12 Jun 2019 10:49:52 -0500 Subject: [PATCH] Another minor update to the relocation wording. --- specification/ch_3.xml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/specification/ch_3.xml b/specification/ch_3.xml index 8c36960..0eef88a 100644 --- a/specification/ch_3.xml +++ b/specification/ch_3.xml @@ -5192,12 +5192,15 @@ my_func: R_PPC64_PCREL_OPT - This relocation specifies that the instruction at r_offset and the - instruction at r_offset + - r_addend may be optimized by the linker. - Specifically, the register set by the first instruction and used by - the second is not used by any intervening instruction nor is the value - used by any following instruction. + This relocation specifies that the instruction at + r_offset and the instruction at + r_offset + r_addend may be + optimized by the linker; the compiler must guarantee that register + lifetimes are such that the optimization is safe. In both code + sequences where this relocation is valid, the first instruction also + has another relocation at r_offset. The + R_PPC64_PCREL_OPT entry occurs immediately after that relocation in + the table of relocations. See and for more details.