In order to pass the tests, this required marking R_MIPS_16 relocations
as needing to point to the symbol and not the section.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM with the missing zeros and a commit message correction.
... as needing to point to the symbol and not the section.
It's the other way around. needsRelocateWithSymbol() is returning false (it takes the fallthrough path) which means it doesn't need the symbol and can rewrite it in terms of the section base.
lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp | ||
---|---|---|
419 | Could you fix this typo while you're there? | |
test/MC/Mips/mips-data-directives.s | ||
20 | There should be more zeros here, it seems to be four bytes short. |
Could you fix this typo while you're there?