提交 09db855b 编写于 作者: R Rich Felker

remove processing of DT_JMPREL from dynamic linker stage 1 bootstrap

the DT_JMPREL relocation table necessarily consists entirely of
JMP_SLOT (REL_PLT in internal nomenclature) relocations, which are
symbolic; they cannot be resolved in stage 1, so there is no point in
processing them.
上级 9f26ebde
......@@ -65,7 +65,6 @@ void _dlstart_c(size_t *sp, size_t *dynv)
size_t size;
size_t stride;
} reloc_info[] = {
{ base+dyn[DT_JMPREL], dyn[DT_PLTRELSZ], 2+(dyn[DT_PLTREL]==DT_RELA) },
{ base+dyn[DT_REL], dyn[DT_RELSZ], 2 },
{ base+dyn[DT_RELA], dyn[DT_RELASZ], 3 },
{ 0, 0, 0 }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册