How to I make GCC not emit a PLT section on AArch64? - Stack Overflow

While compiling this program which uses a custom ELF loader to load shared object files, with gcc versi

While compiling this program which uses a custom ELF loader to load shared object files, with gcc version 14.2.1 20250110 (Red Hat 14.2.1-7) (GCC) on aarch64-redhat-linux:

I'm passing -fno-plt to every invocation of cc and ld, but I still end up with GCC inserting its own symbols into the PLT. How could I get rid of this?

$ readelf -Wr HaxIRCd.so
Relocation section '.rela.plt' at offset 0x57c0 contains 3 entries:
    Offset             Info             Type               Symbol's Value  Symbol's Name + Addend
0000000000030000  0000000b00000402 R_AARCH64_JUMP_SLOT    0000000000000000 __aarch64_ldset4_sync + 0
0000000000030008  0000001800000402 R_AARCH64_JUMP_SLOT    0000000000000000 __aarch64_ldadd4_sync + 0
0000000000030010  0000002a00000402 R_AARCH64_JUMP_SLOT    0000000000000000 __aarch64_ldclr4_sync + 0

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744770330a4592719.html

相关推荐

  • How to I make GCC not emit a PLT section on AArch64? - Stack Overflow

    While compiling this program which uses a custom ELF loader to load shared object files, with gcc versi

    20小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信