[OpenIndiana-discuss] GCC 5.4 added to the repository

Alexander Pyhalov alp at rsu.ru
Tue Sep 6 19:11:48 UTC 2016



Thomas Wagner писал 06.09.2016 20:53:
> Thank you Alex!
> 
> Looks good for libgcc_s.so and libstdc++.so.6
> Only it makes me wonder, why the elfdump output for none of the
> other (non-gcc-runtime-)libs prints "[ LAZY ]" the line right
> before the lib.
> 
> Interesting is, that even 4.9 has none of the libs with "[ LAZY ]".
> 
> As having "lazy load" for libs is there to improve startup latency
> for binaries/libs, I would like to ask if someone might find an
> example with actually printing "[ LAZY ]".
> This can be a completely different binary/project but compiled
> with enther the g++ 4.9 or the new g++ 5 version. It should print
> "[ LAZY ]" for at least one library. Then I would be completely
> happy.
> 
> Best Regards,
> Thomas


Looking at some real applications look different (g++ 4.9):

$ elfdump -d  /usr/bin/mate-system-monitor

Dynamic Section:  .dynamic
      index  tag                value
        [0]  POSFLAG_1         0x1                 [ LAZY ]
        [1]  NEEDED            0x2b7fa             libgmodule-2.0.so.0
        [2]  POSFLAG_1         0x1                 [ LAZY ]
        [3]  NEEDED            0x2b6f5             libpthread.so.1
        [4]  POSFLAG_1         0x1                 [ LAZY ]
        [5]  NEEDED            0x2b80e             libgtop-2.0.so.7
        [6]  POSFLAG_1         0x1                 [ LAZY ]
        [7]  NEEDED            0x2b81f             libwnck-3.so.0
        [8]  POSFLAG_1         0x1                 [ LAZY ]
        [9]  NEEDED            0x2b82e             libgtkmm-3.0.so.1
       [10]  POSFLAG_1         0x1                 [ LAZY ]
       [11]  NEEDED            0x2b840             libgdkmm-3.0.so.1
       [12]  POSFLAG_1         0x1                 [ LAZY ]
       [13]  NEEDED            0x2b852             libgtk-3.so.0
       [14]  POSFLAG_1         0x1                 [ LAZY ]
       [15]  NEEDED            0x2b860             libgdk-3.so.0
       [16]  POSFLAG_1         0x1                 [ LAZY ]
       [17]  NEEDED            0x2b86e             libpangocairo-1.0.so.0
       [18]  POSFLAG_1         0x1                 [ LAZY ]
       [19]  NEEDED            0x2b885             libpango-1.0.so.0
       [20]  POSFLAG_1         0x1                 [ LAZY ]
       [21]  NEEDED            0x2b70e             libxml2.so.2
       [22]  POSFLAG_1         0x1                 [ LAZY ]
       [23]  NEEDED            0x2b897             librsvg-2.so.2
       [24]  POSFLAG_1         0x1                 [ LAZY ]
       [25]  NEEDED            0x2b8a6             libgdk_pixbuf-2.0.so.0
       [26]  POSFLAG_1         0x1                 [ LAZY ]
       [27]  NEEDED            0x2b8bd             libcairo.so.2
       [28]  POSFLAG_1         0x1                 [ LAZY ]
       [29]  NEEDED            0x2b8cb             libgiomm-2.4.so.1
       [30]  POSFLAG_1         0x1                 [ LAZY ]
       [31]  NEEDED            0x2b8dd             libgio-2.0.so.0
       [32]  POSFLAG_1         0x1                 [ LAZY ]
       [33]  NEEDED            0x2b8ed             libglibmm-2.4.so.1
       [34]  POSFLAG_1         0x1                 [ LAZY ]
       [35]  NEEDED            0x2b900             libgobject-2.0.so.0
       [36]  POSFLAG_1         0x1                 [ LAZY ]
       [37]  NEEDED            0x2b914             libglib-2.0.so.0
       [38]  POSFLAG_1         0x1                 [ LAZY ]
       [39]  NEEDED            0x2b925             libsigc-2.0.so.0
       [40]  POSFLAG_1         0x1                 [ LAZY ]
       [41]  NEEDED            0x2b724             libsocket.so.1
       [42]  POSFLAG_1         0x1                 [ LAZY ]
       [43]  NEEDED            0x2b74e             libstdc++.so.6
       [44]  POSFLAG_1         0x1                 [ LAZY ]
       [45]  NEEDED            0x2b7a1             libm.so.2
       [46]  POSFLAG_1         0x1                 [ LAZY ]
       [47]  NEEDED            0x2b7b4             libgcc_s.so.1
       [48]  NEEDED            0x2b7ca             libc.so.1
       [49]  INIT              0x80cc5b0
       [50]  FINI              0x80cc5e0
       [51]  HASH              0x80566c4
       [52]  STRTAB            0x8068050
       [53]  STRSZ             0x2bb36
       [54]  SYMTAB            0x805d2d0
       [55]  SYMENT            0x10
       [56]  SUNW_SYMTAB       0x805bd90
       [57]  SUNW_SYMSZ        0xc2c0
       [58]  SUNW_SORTENT      0x4
       [59]  SUNW_SYMSORT      0x80952d8
       [60]  SUNW_SYMSORTSZ    0x2504
       [61]  CHECKSUM          0x83e4
       [62]  VERNEED           0x8093b88
       [63]  VERNEEDNUM        0x7
       [64]  PLTRELSZ          0x15b0
       [65]  PLTREL            0x11
       [66]  JMPREL            0x8097844
       [67]  REL               0x80977dc
       [68]  RELSZ             0x1618
       [69]  RELENT            0x8
       [70]  SYMINFO           0x8053b64
       [71]  SYMINSZ           0x2b60
       [72]  SYMINENT          0x4
       [73]  DEBUG             0
       [74]  FLAGS             0                   0
       [75]  FLAGS_1           0x100               [ DIRECT ]
       [76]  SUNW_STRPAD       0x200
       [77]  SUNW_LDMACH       0x3e                EM_AMD64
       [78]  PLTGOT            0x80e3000
    [79-89]  NULL              0

---
System Administrator of Southern Federal University Computer Center




More information about the openindiana-discuss mailing list