Skip to content
Unverified Commit 3cde1d80 authored by simpal01's avatar simpal01 Committed by GitHub
Browse files

[ELF] Handle relocations in synthetic .eh_frame with a non-zero offset within...

[ELF] Handle relocations in synthetic .eh_frame with a non-zero offset within the output section (#65966)

When the .eh_frame section is placed at a non-zero
offset within its output section, the relocation
value within .eh_frame are computed incorrectly.

We had similar issue in .ARM.exidx section and it has been
fixed already in https://reviews.llvm.org/D148033.

While applying the relocation using S+A-P,  the value
 of P (the location of the relocation) is getting wrong. 
P is:
  P = SecAddr + rel.offset, But SecAddr points to the
starting address of the outputsection rather than the
starting address of the eh frame section within that
output section.

This issue affects all targets which generates .eh_frame 
section. Hence fixing in all the corresponding targets it affecting.
parent 54be7303
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment