Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

build fails for earm due to ctfconvert



Hi,

Build for earm fails in libexec/ld.elf_so:

  % ./build.sh -U -m evbearmv7hf-eb tools release
  ...
  /var/build/tools/bin/nbctfconvert -g -L VERSION rtld.o
  ERROR: nbctfconvert: rtld.o: Cannot get sect .note.netbsd.march data: Invalid data buffer descriptor
  Removing rtld.o
  ...

Build succeeds with bsd.own.mk 1.896 or older. It is just because
ctfconvert is accidentally not carried out.

The following is output of "readelf -S" for libexec/ld.elf_so/rtld.o.
You can see the section ".note.netbsd.marc":

  There are 19 section headers, starting at offset 0x67f8:

  Section Headers:
    [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
    [ 0]                   NULL            00000000 000000 000000 00      0   0  0
    [ 1] .text             PROGBITS        00000000 000034 003cf4 00  AX  0   0  4
    [ 2] .rel.text         REL             00000000 0057d0 000e88 08   I 17   1  4
    [ 3] .data             PROGBITS        00000000 003d28 000010 00  WA  0   0  4
    [ 4] .bss              NOBITS          00000000 003d38 000218 00  WA  0   0  4
    [ 5] .arm.atpcs        PROGBITS        00000000 003d38 000000 00      0   0  1
    [ 6] .ident            PROGBITS        00000000 003d38 000037 00      0   0  1
    [ 7] .note.netbsd.iden NOTE            00000000 003d70 000018 00   A  0   0  4
    [ 8] .note.netbsd.pax  NOTE            00000000 003d88 000014 00   A  0   0  4
    [ 9] .note.netbsd.marc NOTE            00000000 003d9c 00001f 00   A  0   0  4
    [10] .rodata           PROGBITS        00000000 003dbc 000050 00   A  0   0  4
    [11] .rodata.str1.4    PROGBITS        00000000 003e0c 000127 01 AMS  0   0  4
    [12] .comment          PROGBITS        00000000 003f33 000022 01  MS  0   0  1
    [13] .eh_frame         PROGBITS        00000000 003f58 0004c0 00   A  0   0  4
    [14] .rel.eh_frame     REL             00000000 006658 0000f0 08   I 17  13  4
    [15] .ARM.attributes   ARM_ATTRIBUTES  00000000 004418 00003d 00      0   0  1
    [16] .shstrtab         STRTAB          00000000 006748 0000b0 00      0   0  1
    [17] .symtab           SYMTAB          00000000 004458 000c80 10     18 101  4
    [18] .strtab           STRTAB          00000000 0050d8 0006f7 00      0   0  1

Whereas ".note.netbsd.marc" is missing in, e.g., libexec/ld.elf_so/exit.o,
for which ctfconvert works:

  There are 13 section headers, starting at offset 0x28c:

  Section Headers:
    [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
    [ 0]                   NULL            00000000 000000 000000 00      0   0  0
    [ 1] .text             PROGBITS        00000000 000034 000034 00  AX  0   0  4
    [ 2] .rel.text         REL             00000000 000210 000010 08   I 11   1  4
    [ 3] .data             PROGBITS        00000000 000068 000000 00  WA  0   0  1
    [ 4] .bss              NOBITS          00000000 000068 000000 00  WA  0   0  1
    [ 5] .arm.atpcs        PROGBITS        00000000 000068 000000 00      0   0  1
    [ 6] .comment          PROGBITS        00000000 000068 000022 01  MS  0   0  1
    [ 7] .eh_frame         PROGBITS        00000000 00008c 000034 00   A  0   0  4
    [ 8] .rel.eh_frame     REL             00000000 000220 000008 08   I 11   7  4
    [ 9] .ARM.attributes   ARM_ATTRIBUTES  00000000 0000c0 00003d 00      0   0  1
    [10] .shstrtab         STRTAB          00000000 000228 000062 00      0   0  1
    [11] .symtab           SYMTAB          00000000 000100 0000f0 10     12  12  4
    [12] .strtab           STRTAB          00000000 0001f0 00001e 00      0   0  1

For amd64, on the other hand, build succeeds. The section
".note.netbsd.march" is absent in libexec/ld.elf_so/rtld.o:

  There are 17 section headers, starting at offset 0x8ab8:

  Section Headers:
    [Nr] Name              Type             Address           Offset
         Size              EntSize          Flags  Link  Info  Align
    [ 0]                   NULL             0000000000000000  00000000
         0000000000000000  0000000000000000           0     0     0
    [ 1] .text             PROGBITS         0000000000000000  00000040
         00000000000037ae  0000000000000000  AX       0     0     16
    [ 2] .rela.text        RELA             0000000000000000  00005450
         0000000000003318  0000000000000018   I      15     1     8
    [ 3] .data             PROGBITS         0000000000000000  000037f0
         0000000000000018  0000000000000000  WA       0     0     16
    [ 4] .bss              NOBITS           0000000000000000  00003820
         0000000000000220  0000000000000000  WA       0     0     32
    [ 5] .ident            PROGBITS         0000000000000000  00003820
         0000000000000037  0000000000000000           0     0     1
    [ 6] .note.netbsd.iden NOTE             0000000000000000  00003858
         0000000000000018  0000000000000000   A       0     0     4
    [ 7] .note.netbsd.pax  NOTE             0000000000000000  00003870
         0000000000000014  0000000000000000   A       0     0     4
    [ 8] .rodata.str1.1    PROGBITS         0000000000000000  00003884
         00000000000000ad  0000000000000001 AMS       0     0     1
    [ 9] .rodata.str1.8    PROGBITS         0000000000000000  00003938
         000000000000006a  0000000000000001 AMS       0     0     8
    [10] .rodata           PROGBITS         0000000000000000  000039b0
         0000000000000053  0000000000000000   A       0     0     16
    [11] .comment          PROGBITS         0000000000000000  00003a03
         0000000000000022  0000000000000001  MS       0     0     1
    [12] .eh_frame         PROGBITS         0000000000000000  00003a28
         00000000000005a0  0000000000000000   A       0     0     8
    [13] .rela.eh_frame    RELA             0000000000000000  00008768
         00000000000002b8  0000000000000018   I      15    12     8
    [14] .shstrtab         STRTAB           0000000000000000  00008a20
         0000000000000093  0000000000000000           0     0     1
    [15] .symtab           SYMTAB           0000000000000000  00003fc8
         0000000000000db0  0000000000000018          16    48     8
    [16] .strtab           STRTAB           0000000000000000  00004d78
         00000000000006d7  0000000000000000           0     0     1

Would it be better to send-pr?

Thanks,
Rin


Home | Main Index | Thread Index | Old Index