Relocations in .data.rel are not as easy to calculate (guess how) when there are structs
Summary The issue at hand involves relocations in .data.rel sections when dealing with C structs, which can be counterintuitive to calculate. This problem arises when attempting to rebase the entire section, causing previously calculated fields to be broken. The question seeks to understand how ld (the linker) correctly calculates these relocations, particularly for structs containing … Read more