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
评论列表(0条)