forked from Imagelibrary/binutils-gdb
Correct eh_frame info for __glink_PLTresolve
My PPC64_OPT_LOCALENTRY patch of June 1, git commitf378ab099d, and the later gold change, git commit7ee7ff7015, added an insn in __glink_PLTresolve which needs a corresponding adjustment in the eh_frame info for asynchronous exceptions to unwind correctly. It would have been OK for both ABIs to use +5 for the advance before restore of LR, since we can put the DW_CFA_restore_extended on any insn after the actual restore and before the r12/r0 copy is clobbered, but it's slightly better to delay as much as possible. There are then more addresses where fewer CFA program insns are executed. bfd/ * elf64-ppc.c (ppc64_elf_size_stubs): Correct advance to restore of LR. gold/ * powerpc.cc (glink_eh_frame_fde_64v2): Correct advance to restore of LR. (glink_eh_frame_fde_64v1): Advance to restore of LR at latest possible insn.
This commit is contained in:
@@ -3987,7 +3987,7 @@ static const unsigned char glink_eh_frame_fde_64v1[] =
|
||||
0, // Augmentation size.
|
||||
elfcpp::DW_CFA_advance_loc + 1,
|
||||
elfcpp::DW_CFA_register, 65, 12,
|
||||
elfcpp::DW_CFA_advance_loc + 4,
|
||||
elfcpp::DW_CFA_advance_loc + 5,
|
||||
elfcpp::DW_CFA_restore_extended, 65
|
||||
};
|
||||
|
||||
@@ -3999,7 +3999,7 @@ static const unsigned char glink_eh_frame_fde_64v2[] =
|
||||
0, // Augmentation size.
|
||||
elfcpp::DW_CFA_advance_loc + 1,
|
||||
elfcpp::DW_CFA_register, 65, 0,
|
||||
elfcpp::DW_CFA_advance_loc + 4,
|
||||
elfcpp::DW_CFA_advance_loc + 7,
|
||||
elfcpp::DW_CFA_restore_extended, 65
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user