[PATCH] D62464: [PPC32] Improve 32-bit PowerPC: many applications linked against musl may work with this patch
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 4 06:20:55 PDT 2019
MaskRay added subscribers: adalava, ruiu.
MaskRay added a comment.
In D62464#1529079 <https://reviews.llvm.org/D62464#1529079>, @ruiu wrote:
> What is a motivation to support the old-style PLT? If a program really expects that the PLT is in a writable segment, something is wrong with the program...
I didn't want to support BSS PLT (old-style PLT).
For Secure PLT, I can get musl -no-pie/-pie/-shared and glibc -no-pie work with this patch.
For BSS PLT, because musl doesn't support it, I have to debug glibc in `qemu-system-ppc -hda debian_wheezy_powerpc_standard.qcow2`, which is a pain... (glibc **cannot** be compiled without -O2 => the quality of debug info is at gcc's mercy).
On FreeBSD's side, I believe its rtld doesn't support Secure PLT.
@adalava @emaste It would be great if you can migrate from BSS PLT to Secure PLT (`-msecure-plt`; default in gcc if it is configured with `--enable-secure-plt`; many Linux gcc packages are configured this way).
Repository:
rLLD LLVM Linker
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62464/new/
https://reviews.llvm.org/D62464
More information about the llvm-commits
mailing list