Change:
- Replacing the memcpy that assume little endian with the endian-aware write.
Shouldn't affect the output for now, just a prerequisite for the next patches.
Differential D140201
[lld][ARM][NFCI][1/3]Big Endian support - Removing assumptions ClosedPublic Authored by simpal01 on Dec 16 2022, 3:21 AM.
Details Summary Change:
Shouldn't affect the output for now, just a prerequisite for the next patches.
Diff Detail
Event TimelineM-Plichta added a parent revision: D140202: [lld][ARM][2/3]Big Endian support - Word invariant support.Dec 16 2022, 3:25 AM Comment Actions I've noticed a couple of places where a .word is written in two 16-bit halves. This won't change the result for little-endian to little-endian writes, but could affect big-endian results later. It may also be worth adding [NFCI] to the title as this is a refactoring change (No Functional Changes Intended). Otherwise looks good to me. I'll be on vacation for the next 3 weeks, happy for others to review in my absence. Otherwise will take another look in the new year.
This revision is now accepted and ready to land.Dec 19 2022, 3:00 PM M-Plichta retitled this revision from [lld][ARM][1/3]Big Endian support - Removing assumptions to [lld][ARM][NFCI][1/3]Big Endian support - Removing assumptions. Comment Actions I am taking over this change from the original author @Milosz-Plichta with his permission to move the change forward. Comment Actions Rebased this patch. It was needed a bit more changes to work with the below changes: This revision was landed with ongoing or failed builds.Feb 15 2023, 3:43 AM Closed by commit rG674f094d852b: [lld][ARM][NFCI][1/3]Big Endian support - Removing assumptions (authored by simpal01). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 497355 lld/ELF/Arch/ARM.cpp
lld/ELF/Thunks.cpp
|
The .word is 32-bit. This should be a write32 rather than 2 write16s.