hstk30 / hstk30.github.io

hstk30's Blog
Apache License 2.0
0 stars 0 forks source link

ld lld rel #5

Closed hstk30 closed 10 months ago

hstk30 commented 1 year ago

R_ARM_GOTOFF32 _dl_argv

ld.lld: error: relocation R_ARM_GOTOFF32 cannot be used against symbol _dl_argv; recompile with -fPIC

-Bsymbolic
    When creating a shared library, bind references to global symbols to the definition
    within the shared library, if any. Normally, it is possible for a program
    linked against a shared library to override the definition within the shared library.
    This option is only meaningful on ELF platforms which support shared
    libraries.