We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1c0899 commit 7abc8c4Copy full SHA for 7abc8c4
src/debug/elf/file.go
@@ -564,6 +564,10 @@ func (f *File) applyRelocationsAMD64(dst []byte, rels []byte) error {
564
continue
565
}
566
567
+ // There are relocations, so this must be a normal
568
+ // object file, and we only look at section symbols,
569
+ // so we assume that the symbol value is 0.
570
+
571
switch t {
572
case R_X86_64_64:
573
if rela.Off+8 >= uint64(len(dst)) || rela.Addend < 0 {
@@ -646,6 +650,10 @@ func (f *File) applyRelocationsARM64(dst []byte, rels []byte) error {
646
650
647
651
648
652
653
654
655
656
649
657
658
case R_AARCH64_ABS64:
659
0 commit comments