mirror of
https://github.com/rui314/mold.git
synced 2024-12-28 19:04:27 +03:00
wip
This commit is contained in:
parent
c1c34d2350
commit
c9fe3ba8f6
@ -573,6 +573,9 @@ void GotSection::copy_buf() {
|
||||
void GotPltSection::copy_buf() {
|
||||
u64 *buf = (u64 *)(out::buf + shdr.sh_offset);
|
||||
|
||||
// The first slot of .got.plt points to _DYNAMIC, as requested by
|
||||
// the x86-64 psABI. The second and the third slots are reserved by
|
||||
// the psABI.
|
||||
buf[0] = out::dynamic ? out::dynamic->shdr.sh_addr : 0;
|
||||
buf[1] = 0;
|
||||
buf[2] = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user