[PATCH] D139205: [lld][Alignment] Use Align in ELF Sections

Guillaume Chatelet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 2 07:57:25 PST 2022


gchatelet created this revision.
gchatelet added a reviewer: MaskRay.
Herald added subscribers: StephenFan, arichardson, emaste.
Herald added a project: All.
gchatelet requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Follow up on D139181 <https://reviews.llvm.org/D139181>.
Here we assume that alignExpr contains a valid value (i.e. non zero power of 2).
It was already somewhat assumed but not checked. This will now crash if it's not the case.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139205

Files:
  lld/ELF/InputFiles.cpp
  lld/ELF/InputSection.cpp
  lld/ELF/InputSection.h
  lld/ELF/LinkerScript.cpp
  lld/ELF/LinkerScript.h
  lld/ELF/MapFile.cpp
  lld/ELF/OutputSections.cpp
  lld/ELF/ScriptParser.cpp
  lld/ELF/SyntheticSections.cpp
  lld/ELF/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139205.479642.patch
Type: text/x-patch
Size: 13108 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221202/b03787a8/attachment.bin>


More information about the llvm-commits mailing list