Hi John
My first attempt to post the output failed as it was too long.
Here it is on a paste site
https://zerobin.net/?0bf6ea80afca0924#PT/yP+KTPOXYx/+IKUC+wwhm/UCF+S2fccpHQB9Cf7Q=
Here's an extract:
ELF Header:
Magic: 7f 45 4c 46 01 01 01 06 01 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - Solaris
ABI Version: 1
Type: DYN (Shared object file)
Machine: Intel 80386
Version: 0x1
Entry point address: 0x0
Start of program headers: 52 (bytes into file)
Start of section headers: 12459088 (bytes into file)
Flags: 0x0
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 5
Size of section headers: 40 (bytes)
Number of section headers: 2202
Section header string table index: 2201
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 0] NULL 00000000 000000 000000 00 0 0 0
[ 1] .dynamic DYNAMIC 000000d4 0000d4 0001a8 08 A 7 0 4
[ 2] .eh_frame_hdr PROGBITS 0000027c 00027c 006584 00 A 0 0 4
[ 3] .SUNW_syminfo VERDEF 00006800 006800 005508 04 AI 6 1 4
[ 4] .hash HASH 0000bd08 00bd08 00aa14 04 A 6 0 4
[ 5] .SUNW_ldynsym LOOS+ffffff3 0001671c 01671c 004f30 10 A 7 1267
4
[ 6] .dynsym DYNSYM 0001b64c 01b64c 015420 10 A 7 2 4
[ 7] .dynstr STRTAB 00030a6c 030a6c 0505de 00 AS 0 0 1
[ 8] .SUNW_version VERNEED 0008104c 08104c 000110 01 A 7 4 4
[ 9] .SUNW_version VERDEF 0008115c 08115c 00059c 01 A 7 41 4
[10] .SUNW_versym VERSYM 000816f8 0816f8 002a84 02 A 6 0 4
[11] .SUNW_dynsymsort LOOS+ffffff1 0008417c 08417c 006344 04 A 5 0 4
[12] .SUNW_dyntlssort LOOS+ffffff2 0008a4c0 08a4c0 000008 04 A 5 0 4
[13] .SUNW_reloc REL 0008a4c8 08a4c8 007b40 08 A 6 0 4
[14] .rel.plt REL 00092008 092008 001a80 08 AI 6 1970
4
[15] .rodata._ZNKSt10l PROGBITS 00093a88 093a88 000010 01 AMS 0 0 1
...
[669] .rodata._ZNSt7__c PROGBITS 0009b2dc 09b2dc 00002a 01 AMS 0 0
4
[670] .rodata._ZNSt7__c PROGBITS 0009b308 09b308 00002a 01 AMS 0 0
4
[671] .plt PROGBITS 0009b334 09b334 003510 10 AX 0 0
4
[672] .text PROGBITS 0009e850 09e850 0a7cb5 00 AX 0 0
16
[673] .init PROGBITS 00146510 146510 00001d 00 AX 0 0
16
[674] .fini PROGBITS 00146530 146530 000018 00 AX 0 0
16
[675] .text.unlikely._Z PROGBITS 00146548 146548 000090 00 AX 0 0
2
[676] .text._ZNSi6ignor PROGBITS 001465e0 1465e0 0001d2 00 AX 0 0
16
[677] .text.unlikely._Z PROGBITS 001467b2 1467b2 000090 00 AX 0 0
2
[678] .text._ZNSt13basi PROGBITS 00146850 146850 0001c8 00 AX 0 0
16
...
[2189] .bss._ZGVZN12_GLO NOBITS 001db090 1cb090 000008 00 WA 0 0
8
[2190] .symtab SYMTAB 00000000 1c8830 028690 10 2191
4905 4
[2191] .strtab STRTAB 00000000 1f0ec0 055620 00 S 0 0
1
[2192] .comment PROGBITS 00000000 2464e0 000099 01 MS 0 0
1
[2193] .debug_frame PROGBITS 00000000 24657c 04dda0 00 0 0
4
[2194] .debug_info PROGBITS 00000000 29431c 493301 00 0 0
1
[2195] .debug_abbrev PROGBITS 00000000 72761d 047d97 00 0 0
1
[2196] .debug_loc PROGBITS 00000000 76f3b4 1a238a 00 0 0
1
[2197] .debug_aranges PROGBITS 00000000 91173e 00a390 00 0 0
1
[2198] .debug_ranges PROGBITS 00000000 91bace 06d018 00 0 0
1
[2199] .debug_line PROGBITS 00000000 988ae6 199eb2 00 0 0
1
[2200] .debug_str PROGBITS 00000000 b22998 0a3c22 01 MS 0 0
1
[2201] .shstrtab STRTAB 00000000 bc65ba 01b693 00 S 0 0
1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings)
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 Flg Align
LOAD 0x000000 0x00000000 0x00000000 0x17b617 0x17b617 R E 0x10000
LOAD 0x17b618 0x0018b618 0x00000000 0x4d218 0x4fa80 RWE 0x10000
DYNAMIC 0x0000d4 0x000000d4 0x00000000 0x001a8 0x00000 RWE 0
TLS 0x1c8830 0x001d8830 0x00000000 0x00000 0x00010 RW 0x4
LOOS+464e550 0x00027c 0x0000027c 0x00000000 0x064dc 0x064dc R 0x4
Section to Segment mapping:
Segment Sections...
00 .dynamic .eh_frame_hdr .SUNW_syminfo .hash .SUNW_ldynsym .dynsym
.dynstr .SUNW_version .SUNW_version .SUNW_versym .SUNW_dynsymsort
.SUNW_dyntlssort .SUNW_reloc .rel.plt .rodata._ZNKSt10lock_error4whatEv.str1.1
.rodata._ZNKSt12_GLOBAL__N_122generic_error_category4nameEv.str1.1
.rodata._ZNKSt12_GLOBAL__N_121system_error_category4nameEv.str1.1
...
A+
Paul
> Message du 11/02/18 22:40
> De : "John Reiser"
> A : valgrind-users@lists.sourceforge.net
> Copie à :
> Objet : Re: [Valgrind-users] rodata warning
>
> >>> --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
------------------------------------------------------------------------------
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