Previously we would crash on samples from testcase,
because were trying to access zero pointer to output section.
Details
Details
- Reviewers
ruiu • rafael - Commits
- rG5d0ea70ad521: [ELF] - Do not segfault when doing logical and/or operations on symbols that…
rLLD311311: [ELF] - Do not segfault when doing logical and/or operations on symbols that…
rL311311: [ELF] - Do not segfault when doing logical and/or operations on symbols that…
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/ELF/linkerscript/early-assign-symbol.s | ||
---|---|---|
10–15 ↗ | (On Diff #109291) | What is the difference between these two tests? If they are testing the same thing, remove one of them. Unnecessary tests do harm than good. Please do not add tests for "just in case". |
test/ELF/linkerscript/early-assign-symbol.s | ||
---|---|---|
10–15 ↗ | (On Diff #109291) | First checks | and second checks & operator. Them are implemented via bitAnd() and bitOr() (both use getValue() changed in patch atm), |
test/ELF/linkerscript/early-assign-symbol.s | ||
---|---|---|
10–15 ↗ | (On Diff #109291) | No, as long as one test covers new code, adding more test is mostly redundant. Just like attempting new code concise and clean, you want to try to make tests concise. |