bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/29802] Segmentation fault in _bfd_elf_strtab_add


From: dave.anglin at bell dot net
Subject: [Bug ld/29802] Segmentation fault in _bfd_elf_strtab_add
Date: Fri, 18 Nov 2022 21:30:34 +0000

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

--- Comment #2 from dave.anglin at bell dot net ---
On 2022-11-18 3:51 p.m., amodra at gmail dot com wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=29802
>
> --- Comment #1 from Alan Modra <amodra at gmail dot com> ---
> What sort of local symbol are you trying to make dynamic?  A section symbol?
I'd have to debug more to be certain but when I dump a shared library generated
using HP ld
I see the following messages:

Section Headers:
   [Nr] Name              Type             Address           Offset
        Size              EntSize          Flags  Link  Info  Align
   [ 0]                   NULL             0000000000000000  00000000
        0000000000000000  0000000000000000           0     0     0
   [ 1] .dynamic          DYNAMIC          40000000000001c8  000001c8
        00000000000001a0  0000000000000010   A       3     0     8
   [ 2] .dynsym           DYNSYM           4000000000000368  00000368
        00000000000015d8  0000000000000018   A       3     0     8
   [ 3] .dynstr           STRTAB           4000000000001940  00001940
        0000000000000c41  0000000000000000   A       0     0     1
readelf: Warning: [ 4]: Link field (0) should index a symtab section.
...
Symbol table '.dynsym' contains 233 entries:
    Num:    Value          Size Type    Bind   Vis      Ndx Name
      0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND
readelf: Warning: local symbol 0 found at index >= .dynsym's sh_info value of 0
      1: 40000000000001c8     0 SECTION LOCAL  DEFAULT    1 __text_seg
readelf: Warning: local symbol 1 found at index >= .dynsym's sh_info value of 0
      2: 8000000100000000     0 SECTION LOCAL  DEFAULT   20 __data_seg
readelf: Warning: local symbol 2 found at index >= .dynsym's sh_info value of 0
      3: 8000000100003238     0 SECTION LOCAL  DEFAULT   39
__thread_specific_seg
readelf: Warning: local symbol 3 found at index >= .dynsym's sh_info value of 0
      4: 8000000100001910    96 FUNC    GLOBAL DEFAULT   19 __lshrti3

I see these in links as well.

/opt/gnu64/bin/ld: warning: /lib/pa20_64/libc.sl has a section extending past
end of file
/opt/gnu64/bin/ld: /lib/pa20_64/libc.sl: .dynsym local symbol at index 0 (>=
sh_info of 0)
/opt/gnu64/bin/ld: /lib/pa20_64/libc.sl: .dynsym local symbol at index 1 (>=
sh_info of 0)
/opt/gnu64/bin/ld: /lib/pa20_64/libc.sl: .dynsym local symbol at index 2 (>=
sh_info of 0)
/opt/gnu64/bin/ld: /lib/pa20_64/libc.sl: .dynsym local symbol at index 3 (>=
sh_info of 0)
/opt/gnu64/bin/ld: /usr/lib/pa20_64/libdl.1: .dynsym local symbol at index 0
(>= sh_info of 0)
/opt/gnu64/bin/ld: /usr/lib/pa20_64/libdl.1: .dynsym local symbol at index 1
(>= sh_info of 0)
/opt/gnu64/bin/ld: /usr/lib/pa20_64/libdl.1: .dynsym local symbol at index 2
(>= sh_info of 0)
/opt/gnu64/bin/ld: /usr/lib/pa20_64/libdl.1: .dynsym local symbol at index 3
(>= sh_info of 0)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]