mirror of
https://github.com/rui314/mold.git
synced 2024-12-24 17:01:50 +03:00
temporary
This commit is contained in:
parent
0cf6303b36
commit
242d042c20
2
main.cc
2
main.cc
@ -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);
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user