Why is _dl_relocate_static_pie linked into crt1.o?
Florian Weimer
fweimer@redhat.com
Thu Jul 5 11:51:00 GMT 2018
I see this:
â
$ objdump -d --reloc /usr/lib64/crt1.o
/usr/lib64/crt1.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <_start>:
0: 31 ed xor %ebp,%ebp
2: 49 89 d1 mov %rdx,%r9
5: 5e pop %rsi
6: 48 89 e2 mov %rsp,%rdx
9: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
â¦
0000000000000030 <_dl_relocate_static_pie>:
30: c3 retq
â
Isn't _dl_relocate_static_pie useless there? It will not be used in
dynamically linked binaries. Should it be included in libc_nonshared.a
instead, so that static PIE binaries pick it up, as needed?
Thanks,
Florian
More information about the Libc-alpha
mailing list