Revert "Rebase: [Facebook] Revert "[BOLT] Update dynamic relocations from section relocations""This reverts commit 76029cc53e838e6d86b13b0c39152f474fb09263.
Rebase: [Facebook] Revert "[BOLT] Update dynamic relocations from section relocations"Summary:This reverts commit 729d29e167a553ee1190c310b6a510db8d8731ac.Needed as a workaround for T112872562.
Rebase: [Facebook] Revert "[BOLT] Update dynamic relocations from section relocations"Summary:This reverts commit 729d29e167a553ee1190c310b6a510db8d8731ac.Needed as a workaround for T112872562.Manual rebase conflict history:https://phabricator.intern.facebook.com/D35230076https://phabricator.intern.facebook.com/D35681740Test Plan: sandcastleReviewers: #llvm-boltSubscribers: spupyrevDifferential Revision: https://phabricator.intern.facebook.com/D37098481
show more ...
[BOLT] [AArch64] Handle constant islands spanning multiple functionsFix BOLT's constant island mapping when a constant island marked by $dspans multiple functions. Currently, because BOLT only mar
[BOLT] [AArch64] Handle constant islands spanning multiple functionsFix BOLT's constant island mapping when a constant island marked by $dspans multiple functions. Currently, because BOLT only marks theconstant island in the first function where $d is located, if the nextfunction contains data at its start, BOLT will miss the data and tryto disassemble it. This patch adds code to explicitly go through allsymbols between $d and $x markers and mark their respective offsets asdata, which stops BOLT from trying to disassemble data. It also addsMarkerType enum and refactors related functions.Reviewed By: yota9, rafaulerDifferential Revision: https://reviews.llvm.org/D126177
[BOLT] Update skipRelocation for aarch64The ld might relax ADRP+ADD or ADRP+LDR sequences to the ADR+NOP, addthe new case to the skipRelocation for aarch64.Vladislav Khmelevsky,Advanced Softwar
[BOLT] Update skipRelocation for aarch64The ld might relax ADRP+ADD or ADRP+LDR sequences to the ADR+NOP, addthe new case to the skipRelocation for aarch64.Vladislav Khmelevsky,Advanced Software Technology Lab, HuaweiDifferential Revision: https://reviews.llvm.org/D123334
[BOLT] Fix two aarch64 teststls-lld test might be broken since compiler might optimize plt functioncall and use address directly from got table. The test is removed sinceplt-gnu-ld checks the sam
[BOLT] Fix two aarch64 teststls-lld test might be broken since compiler might optimize plt functioncall and use address directly from got table. The test is removed sinceplt-gnu-ld checks the same functionality + versioning symbol matching,no need to keep both of the tests.The toolchain might optimize relocations in runtime-relocs test, replacethe test compilation with yaml files.Differential Revision: https://reviews.llvm.org/D123332
[BOLT] Fix plt relocations symbol matchThe bfd linker adds the symbol versioning string to the symbol name in symtab.Skip the versioning part in order to find the registered PLT function.Vladisl
[BOLT] Fix plt relocations symbol matchThe bfd linker adds the symbol versioning string to the symbol name in symtab.Skip the versioning part in order to find the registered PLT function.Vladislav Khmelevsky,Advanced Software Technology Lab, HuaweiDifferential Revision: https://reviews.llvm.org/D122039
updateDWARFObjectAddressRanges: nullify low pcIn case the case the DW_AT_ranges tag already exists for the object thelow pc values won't be updated and will be incorrect inafter-bolt binaries.V
updateDWARFObjectAddressRanges: nullify low pcIn case the case the DW_AT_ranges tag already exists for the object thelow pc values won't be updated and will be incorrect inafter-bolt binaries.Vladislav Khmelevsky,Advanced Software Technology Lab, HuaweiDifferential Revision: https://reviews.llvm.org/D117216