[all-commits] [llvm/llvm-project] 970d6d: ELF: Have __rela_iplt_{start, end} surround .rela.i...
pcc via All-commits
all-commits at lists.llvm.org
Wed Dec 4 17:35:27 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 970d6d20967258528980c9b7feaaf3dd3acf9aa3
https://github.com/llvm/llvm-project/commit/970d6d20967258528980c9b7feaaf3dd3acf9aa3
Author: pcc <peter at pcc.me.uk>
Date: 2024-12-04 (Wed, 04 Dec 2024)
Changed paths:
M lld/ELF/Relocations.cpp
M lld/ELF/Relocations.h
M lld/ELF/Writer.cpp
M lld/test/ELF/pack-dyn-relocs-ifunc.s
Log Message:
-----------
ELF: Have __rela_iplt_{start,end} surround .rela.iplt with --pack-dyn-relocs=android.
In #86751 we moved the IRELATIVE relocations to .rela.plt when
--pack-dyn-relocs=android was enabled but we neglected to also move
the __rela_iplt_{start,end} symbols. As a result, static binaries
linked with this flag were unable to find their IRELATIVE relocations.
Fix it by having the symbols surround the correct section.
Reviewers: MaskRay, smithp35
Reviewed By: MaskRay
Pull Request: https://github.com/llvm/llvm-project/pull/118585
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list