Previously we would crash on samples from testcase,
because were trying to access zero pointer to output section.
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
Event Timeline
test/ELF/linkerscript/early-assign-symbol.s | ||
---|---|---|
10–15 | 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 | 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 | 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. |
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".