We would want to make sure the target handlers use the same alignment as how they are read.
Setting the MaxAlignment to 2, makes it safe.
Paths
| Differential D1871
[lld][ELF] Change MaxAlignment to 2 ClosedPublic Authored by shankarke on Oct 9 2013, 11:11 AM.
Details
Summary We would want to make sure the target handlers use the same alignment as how they are read. Setting the MaxAlignment to 2, makes it safe.
Diff Detail
Revision Contents
Diff 4771 lib/ReaderWriter/ELF/Hexagon/HexagonExecutableAtoms.h
lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.h
lib/ReaderWriter/ELF/Hexagon/HexagonSectionChunks.h
lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h
lib/ReaderWriter/ELF/PPC/PPCTargetHandler.h
lib/ReaderWriter/ELF/X86/X86TargetHandler.h
lib/ReaderWriter/ELF/X86_64/X86_64RelocationHandler.h
lib/ReaderWriter/ELF/X86_64/X86_64TargetHandler.h
test/elf/Hexagon/maxalignment.test
|