--18142-- WARNING: Serious error when reading debug info --18142-- When reading debug info from /export/home/paulf/tools/gcc/lib/libstdc++.so.6.0.25: --18142-- Can't make sense of .rodata section mapping (GCC SVN head, Solaris 11.3, Valgrind git head).
What does readelf --headers .../libstdc++.so.6.0.25 say about the ElfXX_Shdrs and ElfXX_Phdrs, and the mapping of the Shdrs into the Phdrs ?
I don’t see any Elf hdrs as above in the output.
Here is the output on Linux. Is there something equivalent on Solaris? ====== $ readelf --headers /lib64/libstdc++.so.6 ELF Header: Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - GNU ABI Version: 0 Type: DYN (Shared object file) Machine: Advanced Micro Devices X86-64 Version: 0x1 Entry point address: 0x8b880 Start of program headers: 64 (bytes into file) Start of section headers: 1588608 (bytes into file) Flags: 0x0 Size of this header: 64 (bytes) Size of program headers: 56 (bytes) Number of program headers: 8 Size of section headers: 64 (bytes) Number of section headers: 33 Section header string table index: 32 Section Headers: [Nr] Name Type Address Offset Size EntSize Flags Link Info Align [ 0] NULL 0000000000000000 00000000 0000000000000000 0000000000000000 0 0 0 [ 1] .note.gnu.build-i NOTE 0000000000000200 00000200 0000000000000024 0000000000000000 A 0 0 4 [ 2] .gnu.hash GNU_HASH 0000000000000228 00000228 0000000000008410 0000000000000000 A 3 0 8 [ 3] .dynsym DYNSYM 0000000000008638 00008638 00000000000205e0 0000000000000018 A 4 3 8 [ 4] .dynstr STRTAB 0000000000028c18 00028c18 0000000000040f7f 0000000000000000 A 0 0 1 [ 5] .gnu.version VERSYM 0000000000069b98 00069b98 0000000000002b28 0000000000000002 A 3 0 2 [ 6] .gnu.version_d VERDEF 000000000006c6c0 0006c6c0 000000000000050c 0000000000000000 A 4 37 8 [ 7] .gnu.version_r VERNEED 000000000006cbd0 0006cbd0 0000000000000100 0000000000000000 A 4 4 8 [ 8] .rela.dyn RELA 000000000006ccd0 0006ccd0 0000000000016aa0 0000000000000018 A 3 0 8 [ 9] .rela.plt RELA 0000000000083770 00083770 0000000000004ce0 0000000000000018 AI 3 27 8 [10] .init PROGBITS 0000000000088450 00088450 0000000000000017 0000000000000000 AX 0 0 4 [11] .plt PROGBITS 0000000000088470 00088470 0000000000003350 0000000000000010 AX 0 0 16 [12] .plt.got PROGBITS 000000000008b7c0 0008b7c0 00000000000000b8 0000000000000000 AX 0 0 8 [13] .text PROGBITS 000000000008b880 0008b880 00000000000af149 0000000000000000 AX 0 0 16 [14] .fini PROGBITS 000000000013a9cc 0013a9cc 0000000000000009 0000000000000000 AX 0 0 4 [15] .rodata PROGBITS 000000000013a9e0 0013a9e0 0000000000008258 0000000000000000 A 0 0 32 [16] .stapsdt.base PROGBITS 0000000000142c38 00142c38 0000000000000001 0000000000000000 A 0 0 1 [17] .eh_frame_hdr PROGBITS 0000000000142c3c 00142c3c 0000000000007714 0000000000000000 A 0 0 4 [18] .eh_frame PROGBITS 000000000014a350 0014a350 000000000002717c 0000000000000000 A 0 0 8 [19] .gcc_except_table PROGBITS 00000000001714cc 001714cc 0000000000006356 0000000000000000 A 0 0 4 [20] .tbss NOBITS 0000000000378318 00178318 0000000000000020 0000000000000000 WAT 0 0 8 [21] .init_array INIT_ARRAY 0000000000378318 00178318 0000000000000058 0000000000000000 WA 0 0 8 [22] .fini_array FINI_ARRAY 0000000000378370 00178370 0000000000000008 0000000000000000 WA 0 0 8 [23] .jcr PROGBITS 0000000000378378 00178378 0000000000000008 0000000000000000 WA 0 0 8 [24] .data.rel.ro PROGBITS 0000000000378380 00178380 00000000000089c8 0000000000000000 WA 0 0 32 [25] .dynamic DYNAMIC 0000000000380d48 00180d48 0000000000000220 0000000000000010 WA 4 0 8 [26] .got PROGBITS 0000000000380f68 00180f68 0000000000001098 0000000000000008 WA 0 0 8 [27] .got.plt PROGBITS 0000000000382000 00182000 00000000000019b8 0000000000000008 WA 0 0 8 [28] .data PROGBITS 00000000003839c0 001839c0 0000000000000178 0000000000000000 WA 0 0 32 [29] .bss NOBITS 0000000000383b40 00183b38 0000000000003720 0000000000000000 WA 0 0 32 [30] .note.stapsdt NOTE 0000000000000000 00183b38 00000000000000ec 0000000000000000 0 0 4 [31] .gnu_debuglink PROGBITS 0000000000000000 00183c24 0000000000000020 0000000000000000 0 0 4 [32] .shstrtab STRTAB 0000000000000000 00183c44 000000000000013c 0000000000000000 0 0 1 Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings), l (large) I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown) O (extra OS processing required) o (OS specific), p (processor specific) Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flags Align LOAD 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000177822 0x0000000000177822 R E 200000 LOAD 0x0000000000178318 0x0000000000378318 0x0000000000378318 0x000000000000b820 0x000000000000ef48 RW 200000 DYNAMIC 0x0000000000180d48 0x0000000000380d48 0x0000000000380d48 0x0000000000000220 0x0000000000000220 RW 8 NOTE 0x0000000000000200 0x0000000000000200 0x0000000000000200 0x0000000000000024 0x0000000000000024 R 4 TLS 0x0000000000178318 0x0000000000378318 0x0000000000378318 0x0000000000000000 0x0000000000000020 R 8 GNU_EH_FRAME 0x0000000000142c3c 0x0000000000142c3c 0x0000000000142c3c 0x0000000000007714 0x0000000000007714 R 4 GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 RW 10 GNU_RELRO 0x0000000000178318 0x0000000000378318 0x0000000000378318 0x0000000000009ce8 0x0000000000009ce8 R 1 Section to Segment mapping: Segment Sections... 00 .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_d .gnu.version_r .rela.dyn .rela.plt .init .plt .plt.got .text .fini .rodata .stapsdt.base .eh_frame_hdr .eh_frame .gcc_except_table 01 .init_array .fini_array .jcr .data.rel.ro .dynamic .got .got.plt .data .bss 02 .dynamic 03 .note.gnu.build-id 04 .tbss 05 .eh_frame_hdr 06 07 .init_array .fini_array .jcr .data.rel.ro .dynamic .got ===== ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users