Skip to content

instrument for libc.so (arm64) failed due to need DT_FINI or DT_FINI_ARRAY #160841

@zhouyu0502

Description

@zhouyu0502

i want to bolt instrument for libc.so (arm64) ,but failed

llvm-bolt libc.so.6 --instrument -o libc.bolt.so.6
BOLT-INFO: shared object or position-independent executable detected
BOLT-INFO: Target architecture: aarch64
BOLT-INFO: BOLT version: 6abb626
BOLT-INFO: first alloc address is 0x0
BOLT-INFO: creating new program header table at address 0x200000, offset 0x200000
BOLT-WARNING: debug info will be stripped from the binary. Use -update-debug-sections to keep it.
BOLT-INFO: enabling relocation mode
BOLT-INFO: forcing -jump-tables=move for instrumentation
./../../llvmori/build/bin/llvm-bolt: 'libc.so.6': Instrumentation needs either DT_FINI or DT_FINI_ARRAY.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions