[OpenIndiana-discuss] GCC 5.4 added to the repository
Alexander Pyhalov
alp at rsu.ru
Tue Sep 6 14:13:10 UTC 2016
On 09/ 6/16 04:57 PM, Thomas Wagner wrote:
> Hi Aurelien,
>
> it would be very cool if someone could send me / the list the output
> of "elfdump -d" on a compiled binary with C++ code. If that is not
> available, then regular C-code is okay too. e.g. gcc -o hello hello.c
> I have no test system at hand (have only older hipster on disk).
>
> What I would appreciated to see would be a configuration that has
> "[ LAZY ]"-load removed (only) for gcc runtime libs.
>
> Excample "good":
>
> ...
> [2] somelib.so
> [3] libgcc_s.so
> ...
> [5] someotherlib.so
> [6] libstdc++.so
>
>
> Excample "bad":
>
> ...
> [2] somelib.so
> [3] [ LAZY ] <- delayed load/binding, libc.so can bind funcs earlier then libgcc_s.so
> [4] libgcc_s.so
> ...
> [5] someotherlib.so
> [6] [ LAZY ] <- delayed load/binding, libc.so can bind funcs earlier then libstdc++.so
> [7] libstdc++.so
>
Hi.
For g++ 5:
Dynamic Section: .dynamic
index tag value
[0] NEEDED 0x2ad libstdc++.so.6
[1] NEEDED 0x2ee libm.so.2
[2] NEEDED 0x2f8 librt.so.1
[3] NEEDED 0x303 libgcc_s.so.1
[4] NEEDED 0x2c8 libc.so.1
[5] INIT 0x8051030
[6] FINI 0x8051050
[7] RUNPATH 0x311 /usr/gcc/5/lib
[8] RPATH 0x311 /usr/gcc/5/lib
[9] HASH 0x80501c0
[10] STRTAB 0x8050630
[11] STRSZ 0x520
[12] SYMTAB 0x8050420
[13] SYMENT 0x10
[14] SUNW_SYMTAB 0x80502e0
[15] SUNW_SYMSZ 0x350
[16] SUNW_SORTENT 0x4
[17] SUNW_SYMSORT 0x8050be4
[18] SUNW_SYMSORTSZ 0x50
[19] CHECKSUM 0x5bf6
[20] VERNEED 0x8050b50
[21] VERNEEDNUM 0x2
[22] FINI_ARRAY 0x8061318
[23] FINI_ARRAYSZ 0x8
[24] INIT_ARRAY 0x8061320
[25] INIT_ARRAYSZ 0x8
[26] PLTRELSZ 0x40
[27] PLTREL 0x11
[28] JMPREL 0x8050c64
[29] REL 0x8050c34
[30] RELSZ 0x70
[31] RELENT 0x8
[32] SYMINFO 0x805013c
[33] SYMINSZ 0x84
[34] SYMINENT 0x4
[35] DEBUG 0
[36] FLAGS 0 0
[37] FLAGS_1 0 0
[38] SUNW_STRPAD 0x200
[39] SUNW_LDMACH 0x3e EM_AMD64
[40] PLTGOT 0x8061078
[41-51] NULL 0
For g++ 4.9:
Dynamic Section: .dynamic
index tag value
[0] NEEDED 0x2c3 libstdc++.so.6
[1] NEEDED 0x304 libm.so.2
[2] NEEDED 0x30e librt.so.1
[3] NEEDED 0x319 libgcc_s.so.1
[4] NEEDED 0x2de libc.so.1
[5] INIT 0x80510c0
[6] FINI 0x80510f0
[7] HASH 0x80501c0
[8] STRTAB 0x8050640
[9] STRSZ 0x527
[10] SYMTAB 0x8050430
[11] SYMENT 0x10
[12] SUNW_SYMTAB 0x80502e0
[13] SUNW_SYMSZ 0x360
[14] SUNW_SORTENT 0x4
[15] SUNW_SYMSORT 0x8050bfc
[16] SUNW_SYMSORTSZ 0x50
[17] CHECKSUM 0xaddb
[18] VERNEED 0x8050b68
[19] VERNEEDNUM 0x2
[20] PLTRELSZ 0x40
[21] PLTREL 0x11
[22] JMPREL 0x8050c7c
[23] REL 0x8050c4c
[24] RELSZ 0x70
[25] RELENT 0x8
[26] SYMINFO 0x805013c
[27] SYMINSZ 0x84
[28] SYMINENT 0x4
[29] DEBUG 0
[30] FLAGS 0 0
[31] FLAGS_1 0 0
[32] SUNW_STRPAD 0x200
[33] SUNW_LDMACH 0x3e EM_AMD64
[34] PLTGOT 0x806111c
[35-45] NULL 0
I don't see any specific patch for -zinterpose...
--
Best regards,
Alexander Pyhalov,
system administrator of Southern Federal University IT department
More information about the openindiana-discuss
mailing list