[lld] [X86][LLD] Handle R_X86_64_CODE_6_GOTTPOFF relocation type (PR #117675)

Shengchen Kan via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 26 22:04:18 PST 2024


================

----------------
KanRobert wrote:

We can easily edit the encoding in obj file to produce an invalid encoding with R_X86_64_CODE_6_GOTTPOFF relocation, e.g. set the zero bits in payload2 to ones.  And then feed the modified the obj to linker, it would error nothing with this implementation.

https://github.com/llvm/llvm-project/pull/117675


More information about the llvm-commits mailing list