[llvm] [AArch64, ELF] Omit initial $d of non-text sections (PR #99580)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 23:24:39 PDT 2024
MaskRay wrote:
> Although this mix-and-match scenario is unlikely to affect any users except those doing OMAGIC style things, if we have even slight reservations, perhaps this PR could be adjusted to use EMS_Data for non-SHF_ALLOC sections as an extra safety measure.
(More write-up here https://maskray.me/blog/2024-07-21-mapping-symbols-rethinking-for-efficiency)
@TNorthover In https://reviews.llvm.org/D30724 for AArch32 , one suggestions was that we could omit mapping symbols non-SHF_ALLOC but you did not think so.
I know that linker scripts can do strange things like blending data and code, but I think it's fairly safe to assume that non-SHF_ALLOC sections cannot contain instructions.
https://github.com/llvm/llvm-project/pull/99580
More information about the llvm-commits
mailing list