admin管理员组文章数量:1391798
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
本文标签: How to I make GCC not emit a PLT section on AArch64Stack Overflow
版权声明:本文标题:How to I make GCC not emit a PLT section on AArch64? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744770329a2624299.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论