We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45e2a9d commit 70b61e3Copy full SHA for 70b61e3
arch/x86/tools/calc_run_size.pl
@@ -19,7 +19,16 @@
19
if ($file_offset == 0) {
20
$file_offset = $offset;
21
} elsif ($file_offset != $offset) {
22
- die ".bss and .brk lack common file offset\n";
+ # BFD linker shows the same file offset in ELF.
23
+ # Gold linker shows them as consecutive.
24
+ next if ($file_offset + $mem_size == $offset + $size);
25
+
26
+ printf STDERR "file_offset: 0x%lx\n", $file_offset;
27
+ printf STDERR "mem_size: 0x%lx\n", $mem_size;
28
+ printf STDERR "offset: 0x%lx\n", $offset;
29
+ printf STDERR "size: 0x%lx\n", $size;
30
31
+ die ".bss and .brk are non-contiguous\n";
32
}
33
34
0 commit comments