1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-24 17:01:50 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-11-16 11:48:28 +09:00
parent 0cf6303b36
commit 242d042c20
2 changed files with 2 additions and 2 deletions

View File

@ -514,7 +514,7 @@ static void write_got(u8 *buf, ArrayRef<ObjectFile *> files) {
memset(&esym, 0, sizeof(esym));
esym.st_name = dynstr_offset;
esym.setType(sym->type);
esym.setBinding(sym->binding);
esym.setBinding(sym->esym->getBinding());
// Write to .dynstr
write_string(dynstr_buf + dynstr_offset, sym->name);

View File

@ -42,7 +42,7 @@
// DYNAMIC: 5 6: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main
// DYNAMIC: 4 6: 0000000000000000 0 FUNC GLOBAL DEFAULT UND printf
// DYNAMIC: 3 6: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND main
// DYNAMIC: 1 7: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND __gmon_start__
// DYNAMIC: 1 7: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
.globl main
main: