ARM64 thunks and relocation addends #667
-
|
I was looking over #463 and while reading the code for adding thunks, I noticed that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I think it's not a bug. When applying a relocation, we don't know whether a relocation refers a section fragment or a symbol. A section fragment is a pieced of data in a mergeable section. On the other hand, when we are creating range extension thunks, we know we are handling only executable code, and we don't need to handle section pieces. So the simple |
Beta Was this translation helpful? Give feedback.
I think it's not a bug. When applying a relocation, we don't know whether a relocation refers a section fragment or a symbol. A section fragment is a pieced of data in a mergeable section. On the other hand, when we are creating range extension thunks, we know we are handling only executable code, and we don't need to handle section pieces. So the simple
r.r_addendsuffices.