1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-22 10:27:48 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-11-12 13:15:29 +09:00
parent bdb275eb49
commit 781371f242
2 changed files with 2 additions and 2 deletions

View File

@ -752,7 +752,7 @@ static void fix_synthetic_symbols(ArrayRef<OutputChunk *> chunks) {
for (OutputChunk *chunk : chunks) { for (OutputChunk *chunk : chunks) {
if (chunk->shndx == 1) { if (chunk->shndx == 1) {
out::__ehdr_start->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; break;
} }
} }

View File

@ -9,7 +9,7 @@
// CHECK: 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND // CHECK: 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
// CHECK: 1: 0000000000201000 0 NOTYPE LOCAL DEFAULT 8 local1 // CHECK: 1: 0000000000201000 0 NOTYPE LOCAL DEFAULT 8 local1
// CHECK: 2: 0000000000201001 0 NOTYPE LOCAL DEFAULT 8 local2 // 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: 4: 00000000002001d0 0 NOTYPE LOCAL DEFAULT 5 __rela_iplt_start
// CHECK: 5: 00000000002001d0 0 NOTYPE LOCAL DEFAULT 5 __rela_iplt_end // CHECK: 5: 00000000002001d0 0 NOTYPE LOCAL DEFAULT 5 __rela_iplt_end
// CHECK: 6: 0000000000000000 0 NOTYPE LOCAL DEFAULT ABS __init_array_start // CHECK: 6: 0000000000000000 0 NOTYPE LOCAL DEFAULT ABS __init_array_start