https://sourceware.org/bugzilla/show_bug.cgi?id=34097

--- Comment #4 from Mark Wielaard <mark at klomp dot org> ---
(In reply to Vitaly Chikunov from comment #3)
> builder@i586:~/tmp/kernel-image-6.18-buildroot$ readelf -hlS
> ./lib/modules/6.18.24-6.18-alt1/kernel/drivers/mtd/tests/mtd_nandbiterrs.ko
[...]
>   [ 6] .debug_aranges    PROGBITS        00000000 000105 000078 00      0  
> 0  1
>   [ 7] .rel.debug_aranges REL             00000000 000180 000048 08   I 45  
> 6  4
>   [ 8] .debug_info       PROGBITS        00000000 0001c8 011027 00      0  
> 0  1
>   [ 9] .rel.debug_info   REL             00000000 0111f0 008d68 08   I 45  
> 8  4
>   [10] .debug_abbrev     PROGBITS        00000000 019f58 001141 00      0  
> 0  1
>   [11] .debug_line       PROGBITS        00000000 01b099 000fac 00      0  
> 0  1                                                         
>   [12] .rel.debug_line   REL             00000000 01c048 0008e8 08   I 45 
> 11  4                                                         
>   [13] .debug_frame      PROGBITS        00000000 01c930 0000e4 00      0  
> 0  4                                                         
>   [14] .rel.debug_frame  REL             00000000 01ca14 000060 08   I 45 
> 13  4                                                         
>   [15] .debug_str        PROGBITS        00000000 01ca74 00ca7a 01  MS  0  
> 0  1                                                         
>   [16] .debug_line_str   PROGBITS        00000000 0294ee 0007e0 01  MS  0  
> 0  1                                                         
>   [17] .debug_loclists   PROGBITS        00000000 029cce 000994 00      0  
> 0  1                                                         
>   [18] .rel.debug_loclists REL             00000000 02a664 0001c8 08   I 45 
> 17  4                                                       
>   [19] .debug_rnglists   PROGBITS        00000000 02a82c 0000c2 00      0  
> 0  1
>   [20] .rel.debug_rnglists REL             00000000 02a8f0 000078 08   I 45 
> 19  4
>   [21] .text.unlikely    PROGBITS        00000000 02a968 0001cb 00  AX  0  
> 0  4
>   [22] .rel.text.unlikely REL             00000000 02ab34 000110 08   I 45 
> 21  4
>   [23] __mcount_loc      PROGBITS        00000000 02ac44 000014 00   A  0  
> 0  1
>   [24] .rel__mcount_loc  REL             00000000 02ac58 000028 08   I 45 
> 23  4
>   [25] .exit.text        PROGBITS        00000000 02ac80 000001 00  AX  0  
> 0  4
>   [26] .rodata.str1.4    PROGBITS        00000000 02ac84 000623 01 AMS  0  
> 0  4
>   [27] .rodata.str1.1    PROGBITS        00000000 02b2a7 000020 01 AMS  0  
> 0  1
>   [28] .init.text        PROGBITS        00000000 02b2c8 00051d 00  AX  0  
> 0  4
>   [29] .rel.init.text    REL             00000000 02b7e8 0003c8 08   I 45 
> 28  4
>   [30] .modinfo          PROGBITS        00000000 02bbb0 0001d9 00   A  0  
> 0  1
>   [31] .exit.data        PROGBITS        00000000 02bd8c 000004 00  WA  0  
> 0  4
>   [32] .rel.exit.data    REL             00000000 02bd90 000008 08   I 45 
> 31  4
>   [33] .init.data        PROGBITS        00000000 02bd98 000004 00  WA  0  
> 0  4
>   [34] .rel.init.data    REL             00000000 02bd9c 000008 08   I 45 
> 33  4
>   [35] __param           PROGBITS        00000000 02bda4 000050 00   A  0  
> 0  4
>   [36] .rel__param       REL             00000000 02bdf4 000080 08   I 45 
> 35  4
>   [37] .note.GNU-stack   PROGBITS        00000000 02be74 000000 00      0  
> 0  1
>   [38] .note.gnu.property NOTE            00000000 02be74 000028 00   A  0  
> 0  4
>   [39] .note.gnu.build-id NOTE            00000000 02be9c 000024 00   A  0  
> 0  4
>   [40] __versions        PROGBITS        00000000 02bec0 000440 00   A  0  
> 0 32
>   [41] .gnu.linkonce.this_module PROGBITS        00000000 02c300 0002e0 00 
> WA  0   0 32
>   [42] .rel.gnu.linkonce.this_module REL             00000000 02c5e0 000010
> 08   I 45  41  4
>   [43] .note.Linux       NOTE            00000000 02c5f0 000030 00   A  0  
> 0  4
>   [44] .BTF              PROGBITS        00000000 02c620 000ed2 00      0  
> 0  1
>   [45] .symtab           SYMTAB          00000000 02d4f4 000650 10     46 
> 82  4
>   [46] .strtab           STRTAB          00000000 02db44 000421 00      0  
> 0  1
>   [47] .shstrtab         STRTAB          00000000 02df65 0001c5 00      0  
> 0  1

So all relocation sections point to section 45, symtab, which is SHT_SYMTAB,
not SHT_NOBITS. So this is odd. The ERRORs should not happen.

Could you attach the whole .ko file?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to