Skip to content

Unnecessary symbols being exported in libbitcoinconsensus.so #26698

@hebasto

Description

@hebasto

Initially it was reported in #25020 (comment).

$ objdump -T ./bitcoin-24.0.1/lib/libbitcoinconsensus.so | grep bitcoinconsensus_
000000000002b1f0 g    DF .text	0000000000000037  Base        bitcoinconsensus_version
000000000002cc30 g    DF .text	000000000000006d  Base        bitcoinconsensus_verify_script
000000000002cbe0 g    DF .text	0000000000000049  Base        bitcoinconsensus_verify_script_with_amount
$ objdump -T ./bitcoin-24.0.1/lib/libbitcoinconsensus.so | grep -v UND

./bitcoin-24.0.1/lib/libbitcoinconsensus.so:     file format elf64-x86-64

DYNAMIC SYMBOL TABLE:
000000000002cd20  w   DF .text	00000000000000ce  Base        _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_
000000000003a000  w   DF .text	00000000000001e5  Base        _ZNSt6vectorIS_IhSaIhEESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
0000000000038590  w   DF .text	0000000000000054  Base        _ZNSt19bad_optional_accessD0Ev
0000000000022050  w   DF .text	0000000000000034  Base        _ZNKSt5ctypeIcE8do_widenEc
00000000001739a8  w   DO .data.rel.ro	0000000000000018  Base        _ZTISt19bad_optional_access
0000000000038540  w   DF .text	0000000000000042  Base        _ZNSt19bad_optional_accessD2Ev
00000000000285e0  w   DF .text	0000000000000373  Base        _ZNSt20__uninitialized_copyILb0EE13__uninit_copyIN9__gnu_cxx17__normal_iteratorIPK5CTxInSt6vectorIS4_SaIS4_EEEEPS4_EET0_T_SD_SC_
000000000002b1f0 g    DF .text	0000000000000037  Base        bitcoinconsensus_version
000000000000596f  w   DF .text	0000000000000048  Base        _ZSt27__throw_bad_optional_accessv
000000000002cc30 g    DF .text	000000000000006d  Base        bitcoinconsensus_verify_script
00000000000393c0  w   DF .text	000000000000009e  Base        _ZNSt6vectorIS_IhSaIhEESaIS1_EED1Ev
0000000000044890  w   DF .text	00000000000000d4  Base        _ZNSt8__detail18__from_chars_digitIjEEbRPKcS2_RT_i
00000000000397f0  w   DF .text	0000000000000120  Base        _ZNSt6vectorIS_IhSaIhEESaIS1_EE9push_backERKS1_
0000000000039910  w   DF .text	000000000000012d  Base        _ZNSt6vectorIS_IhSaIhEESaIS1_EE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPS1_S3_EES7_
00000000001739f0  w   DO .data.rel.ro	0000000000000028  Base        _ZTVSt19bad_optional_access
000000000002cbe0 g    DF .text	0000000000000049  Base        bitcoinconsensus_verify_script_with_amount
0000000000038050  w   DF .text	0000000000000039  Base        _ZNKSt19bad_optional_access4whatEv
0000000000039460  w   DF .text	00000000000000b6  Base        _ZNSt6vectorIhSaIhEEC2ERKS1_
0000000000027ef0  w   DF .text	0000000000000062  Base        _ZNSt12_Vector_baseIhSaIhEED2Ev
0000000000023020  w   DF .text	0000000000000073  Base        _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED1Ev
0000000000039460  w   DF .text	00000000000000b6  Base        _ZNSt6vectorIhSaIhEEC1ERKS1_
0000000000039520  w   DF .text	00000000000002cd  Base        _ZNSt6vectorIS_IhSaIhEESaIS1_EE17_M_realloc_insertIJRKS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
0000000000038690  w   DF .text	0000000000000062  Base        _ZNSt6vectorIhSaIhEED1Ev
0000000000056f10  w   DO .rodata	0000000000000018  Base        _ZTSSt19bad_optional_access
00000000000221e0  w   DF .text	00000000000000d3  Base        _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1IS3_EEPKcRKS3_
0000000000044360  w   DF .text	00000000000000dc  Base        _ZNSt8__detail18__from_chars_digitImEEbRPKcS2_RT_i
00000000000444e0  w   DF .text	0000000000000178  Base        _ZNSt6vectorISt4byteSaIS0_EE17_M_realloc_insertIJS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
00000000000440f0  w   DF .text	00000000000000e2  Base        _ZNSt6vectorIhSaIhEE7reserveEm
0000000000038540  w   DF .text	0000000000000042  Base        _ZNSt19bad_optional_accessD1Ev
0000000000039e80  w   DF .text	0000000000000178  Base        _ZNSt6vectorIhSaIhEE17_M_realloc_insertIJhEEEvN9__gnu_cxx17__normal_iteratorIPhS1_EEDpOT_
00000000000221e0  w   DF .text	00000000000000d3  Base        _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_
000000000002d670  w   DF .text	0000000000000373  Base        _ZNSt20__uninitialized_copyILb0EE13__uninit_copyIPK5CTxInPS2_EET0_T_S7_S6_
000000000002d4a0  w   DF .text	00000000000001cd  Base        _ZNSt6vectorIS_IhSaIhEESaIS1_EE17_M_realloc_insertIJEEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
0000000000053964 g    DF .fini	0000000000000000  Base        _fini
0000000000004000 g    DF .init	0000000000000000  Base        _init
00000000000393c0  w   DF .text	000000000000009e  Base        _ZNSt6vectorIS_IhSaIhEESaIS1_EED2Ev
0000000000039b30  w   DF .text	0000000000000160  Base        _ZNSt6vectorIS_IhSaIhEESaIS1_EE13_M_insert_auxIS1_EEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEOT_
0000000000039a40  w   DF .text	00000000000000e3  Base        _ZNSt6vectorIS_IhSaIhEESaIS1_EE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPS1_S3_EE
0000000000039c90  w   DF .text	00000000000001e5  Base        _ZNSt6vectorIS_IhSaIhEESaIS1_EE17_M_default_appendEm
00000000000230a0  w   DF .text	0000000000000081  Base        _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED0Ev
0000000000027ef0  w   DF .text	0000000000000062  Base        _ZNSt12_Vector_baseIhSaIhEED1Ev
0000000000023020  w   DF .text	0000000000000073  Base        _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED2Ev
0000000000038690  w   DF .text	0000000000000062  Base        _ZNSt6vectorIhSaIhEED2Ev
00000000000441e0  w   DF .text	0000000000000178  Base        _ZNSt6vectorIhSaIhEE17_M_realloc_insertIJRKhEEEvN9__gnu_cxx17__normal_iteratorIPhS1_EEDpOT_
0000000000043fc0  w   DF .text	0000000000000129  Base        _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions