hanchenye-llvm-project/lld/ELF
George Rimar f22ec9ddf6 [ELF] - Linkerscript: fix issue with SUBALIGN.
This is PR34886.

SUBALIGN command currently triggers failture if result expression
is zero. Patch fixes the issue, treating zero as 1, what is consistent with
other places and ELF spec it seems.

Patch also adds "is power of 2" check for this and other expressions
returning alignment.

Differential revision: https://reviews.llvm.org/D38846

llvm-svn: 316580
2017-10-25 14:50:51 +00:00
..
Arch Move comment to the place where it makes more sense. 2017-10-24 20:11:07 +00:00
CMakeLists.txt [lld] Move Threads to Common 2017-10-13 18:22:55 +00:00
Config.h LLD/ELF: Allow targets to set e_flags 2017-10-24 17:01:40 +00:00
Driver.cpp Use ArgList::hasFlag(). 2017-10-24 20:59:55 +00:00
Driver.h Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
DriverUtils.cpp Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
EhFrame.cpp Revert rL313697, "Compact EhSectionPiece from 32 bytes to 16 bytes." 2017-09-20 08:03:18 +00:00
EhFrame.h Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
Error.cpp [lld] Move Threads to Common 2017-10-13 18:22:55 +00:00
Error.h Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
Filesystem.cpp [lld] Move Threads to Common 2017-10-13 18:22:55 +00:00
Filesystem.h Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
GdbIndex.cpp [ELF] Decompress debug info sections early 2017-10-04 00:19:41 +00:00
GdbIndex.h Remove unused member variable. 2017-09-24 23:12:36 +00:00
ICF.cpp [lld] Move Threads to Common 2017-10-13 18:22:55 +00:00
ICF.h [ELF] - Apply clang-format. NFC. 2017-07-18 11:55:35 +00:00
InputFiles.cpp Use more precise type. 2017-10-11 04:01:13 +00:00
InputFiles.h Update for llvm change. 2017-10-10 22:18:16 +00:00
InputSection.cpp Remove a fast lookup table from MergeInputSection. 2017-10-22 23:02:07 +00:00
InputSection.h Remove obsolete comment. 2017-10-24 21:44:43 +00:00
LTO.cpp Rename Commands -> SectionCommands. 2017-10-11 01:50:56 +00:00
LTO.h Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
LinkerScript.cpp Make Ctx a plain pointer again. 2017-10-23 21:12:19 +00:00
LinkerScript.h Make Ctx a plain pointer again. 2017-10-23 21:12:19 +00:00
MapFile.cpp [lld] Move Threads to Common 2017-10-13 18:22:55 +00:00
MapFile.h Merge OutputSectionCommand and OutputSection. 2017-07-27 19:22:43 +00:00
MarkLive.cpp [ELF] - Do not collect SHT_REL[A] sections unconditionally when --gc-sections and --emit-relocs used together. 2017-10-24 08:26:32 +00:00
Memory.h [ELF] - Apply clang-format. NFC. 2017-07-18 11:55:35 +00:00
Options.td [ELF] - Removed unused class from Options.td. NFC. 2017-10-17 12:23:51 +00:00
OutputSections.cpp [lld] Move Threads to Common 2017-10-13 18:22:55 +00:00
OutputSections.h Rename processCommands -> processSectionCommands. 2017-10-11 02:28:28 +00:00
README.md
Relocations.cpp [mips] Provide more detailed comment. NFC 2017-10-17 14:39:03 +00:00
Relocations.h Remove one parameter from Target::getRelExpr. 2017-10-12 03:14:06 +00:00
ScriptLexer.cpp [ELF] - Linkerscript: Add `~` as separate math token. 2017-10-12 08:40:12 +00:00
ScriptLexer.h Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
ScriptParser.cpp [ELF] - Linkerscript: fix issue with SUBALIGN. 2017-10-25 14:50:51 +00:00
ScriptParser.h Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
Strings.cpp [ELF] - Update after LLVM r314883 change. NFC. 2017-10-04 08:50:34 +00:00
Strings.h [ELF] - Update after LLVM r314883 change. NFC. 2017-10-04 08:50:34 +00:00
SymbolTable.cpp Refactor duplicated comment. NFC. 2017-10-24 16:27:31 +00:00
SymbolTable.h Revert r315877: Simplify. 2017-10-16 18:49:28 +00:00
Symbols.cpp Refactor duplicated comment. NFC. 2017-10-24 16:27:31 +00:00
Symbols.h Refactor duplicated comment. NFC. 2017-10-24 16:27:31 +00:00
SyntheticSections.cpp Assume that mergeable input sections are smaller than 4 GiB. 2017-10-21 23:20:13 +00:00
SyntheticSections.h Split decompressAndMergeSection into two separate functions. 2017-10-11 03:12:53 +00:00
Target.cpp Define RelType to represent relocation types. 2017-10-11 22:49:24 +00:00
Target.h LLD/ELF: Allow targets to set e_flags 2017-10-24 17:01:40 +00:00
Thunks.cpp Define RelType to represent relocation types. 2017-10-11 22:49:24 +00:00
Thunks.h Define RelType to represent relocation types. 2017-10-11 22:49:24 +00:00
Writer.cpp Improve comment. 2017-10-24 19:53:51 +00:00
Writer.h [MIPS] Generate thunks for microMIPS code 2017-10-03 13:30:02 +00:00

README.md

See docs/NewLLD.rst