[Bug 231790] mips64: attempting to load a module results in relocation errors and crash

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Oct 1 11:57:23 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231790

--- Comment #3 from Ed Maste <emaste at freebsd.org> ---
Parsing the bad one readelf emits very many errors:
readelf: Error:  bad symbol index: 0000011b in reloc

And relocation differences:

│ @@ -1,36543 +1,36543 @@                                                       
│                                                                               
│  Relocation section '.rela.text' at offset 0x21508 contains 11885 entries:    
│      Offset             Info             Type               Symbol's Value 
Symbol's Name + Addend
│ -0000000000000018  000000030000000b R_MIPS_CALL16          0000000000000000
.rodata.str1.8 + 0
│ +0000000000000018  000000020000001d R_MIPS_HIGHEST         0000000000000000
.rodata + 0
│                      Type2: R_MIPS_NONE                                       
│                      Type3: R_MIPS_NONE                                       
│ -000000000000001c  0000000300000000 R_MIPS_NONE            0000000000000000
.rodata.str1.8 + 0
│ +000000000000001c  0000000200000005 R_MIPS_HI16            0000000000000000
.rodata + 0
│                      Type2: R_MIPS_NONE                                       
│                      Type3: R_MIPS_NONE                                       
│ -0000000000000020  000000030000000a R_MIPS_PC16            0000000000000000
.rodata.str1.8 + 0
│ +0000000000000020  000000020000001c R_MIPS_HIGHER          0000000000000000
.rodata + 0
│                      Type2: R_MIPS_NONE                                       
│                      Type3: R_MIPS_NONE                                       
│ -0000000000000024  0000000300000000 R_MIPS_NONE            0000000000000000
.rodata.str1.8 + 0
│ +0000000000000024  0000000200000006 R_MIPS_LO16            0000000000000000
.rodata + 0
│                      Type2: R_MIPS_NONE                                       
│                      Type3: R_MIPS_NONE                                       
│ -0000000000000040  000000040000000b R_MIPS_CALL16          0000000000000000
.data + 0
│ +0000000000000040  000000030000001d R_MIPS_HIGHEST         0000000000000000
.rodata.str1.8 + 0
│                      Type2: R_MIPS_NONE                                       
│                      Type3: R_MIPS_NONE                                       
│ -0000000000000044  0000000400000000 R_MIPS_NONE            0000000000000000
.data + 0
│ +0000000000000044  0000000300000005 R_MIPS_HI16            0000000000000000
.rodata.str1.8 + 0
│                      Type2: R_MIPS_NONE                                       
│                      Type3: R_MIPS_NONE                                       
│ -0000000000000048  000000040000000a R_MIPS_PC16            0000000000000000
.data + 0
│ +0000000000000048  000000030000001c R_MIPS_HIGHER          0000000000000000
.rodata.str1.8 + 0
│                      Type2: R_MIPS_NONE                                       
│                      Type3: R_MIPS_NONE                                       
│ -000000000000004c  0000000400000000 R_MIPS_NONE            0000000000000000
.data + 0
│ +000000000000004c  0000000300000006 R_MIPS_LO16            0000000000000000
.rodata.str1.8 + 0
│                      Type2: R_MIPS_NONE                                       
│                      Type3: R_MIPS_NONE                                       
│ -0000000000000060  000000040000000b R_MIPS_CALL16          0000000000000000
.data + 8
│ +0000000000000060  000000030000001d R_MIPS_HIGHEST         0000000000000000
.rodata.str1.8 + 8
│                      Type2: R_MIPS_NONE                                       
│                      Type3: R_MIPS_NONE                                       
│ -0000000000000064  0000000400000000 R_MIPS_NONE            0000000000000000
.data + 8
│ +0000000000000064  0000000300000005 R_MIPS_HI16            0000000000000000
.rodata.str1.8 + 8
│                      Type2: R_MIPS_NONE                                       
│                      Type3: R_MIPS_NONE                                       
│ -0000000000000068  000000040000000a R_MIPS_PC16            0000000000000000
.data + 8
│ +0000000000000068  000000030000001c R_MIPS_HIGHER          0000000000000000
.rodata.str1.8 + 8
│                      Type2: R_MIPS_NONE                                       
│                      Type3: R_MIPS_NONE                                       
│ -000000000000006c  0000000400000000 R_MIPS_NONE            0000000000000000
.data + 8
│ +000000000000006c  0000000300000006 R_MIPS_LO16            0000000000000000
.rodata.str1.8 + 8
│                      Type2: R_MIPS_NONE                                       
│                      Type3: R_MIPS_NONE                                       
...

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-mips mailing list