mirror of
https://github.com/rui314/mold.git
synced 2024-09-22 10:27:48 +03:00
temporary
This commit is contained in:
parent
bdb275eb49
commit
781371f242
2
main.cc
2
main.cc
@ -752,7 +752,7 @@ static void fix_synthetic_symbols(ArrayRef<OutputChunk *> chunks) {
|
||||
for (OutputChunk *chunk : chunks) {
|
||||
if (chunk->shndx == 1) {
|
||||
out::__ehdr_start->shndx = 1;
|
||||
out::__ehdr_start->value = out::ehdr->shdr.sh_addr - chunk->shdr.sh_addr;
|
||||
out::__ehdr_start->value = out::ehdr->shdr.sh_addr;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,7 @@
|
||||
// CHECK: 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
|
||||
// CHECK: 1: 0000000000201000 0 NOTYPE LOCAL DEFAULT 8 local1
|
||||
// CHECK: 2: 0000000000201001 0 NOTYPE LOCAL DEFAULT 8 local2
|
||||
// CHECK: 3: fffffffffffffe70 0 NOTYPE LOCAL DEFAULT 1 __ehdr_start
|
||||
// CHECK: 3: 0000000000200000 0 NOTYPE LOCAL DEFAULT 1 __ehdr_start
|
||||
// CHECK: 4: 00000000002001d0 0 NOTYPE LOCAL DEFAULT 5 __rela_iplt_start
|
||||
// CHECK: 5: 00000000002001d0 0 NOTYPE LOCAL DEFAULT 5 __rela_iplt_end
|
||||
// CHECK: 6: 0000000000000000 0 NOTYPE LOCAL DEFAULT ABS __init_array_start
|
||||
|
Loading…
Reference in New Issue
Block a user