In this file we only have to handle the v2 ABI, so what we need to do
is to just make sure that all object files have v2 or unspecified version
number.
Details
Diff Detail
- Build Status
Buildable 19266 Build 19266: arc lint + arc unit
Event Timeline
Other then the 1 comment this LGTM.
lld/ELF/Arch/PPC64.cpp | ||
---|---|---|
121 | I think we should still emit 2 separate error messages:
|
lld/ELF/Arch/PPC64.cpp | ||
---|---|---|
121 | What do you suggest for the second message? I thought it would be something like "unsupported ABI version: 3" which is basically the same error message for v1. |
lld/ELF/Arch/PPC64.cpp | ||
---|---|---|
121 | Maybe I am misunderstanding exactly what the eflags can be used for but I thought they can specify features/extensions as well as the abi versions. Right now only bits 0 and 1 are used to specify the abi, so if bit 1 is set we recognize that the user is giving us abi 1 input which isn't supported and let the user know exactly what the problem is. If any bits above 1 are set we don't know if they are supposed to represent a new abi flag, a new feature flag or if the input is corrupted, and in that case a message like "Unrecognized feature flags: " + Twine (Flags & ~3) is likely to be more helpful. |
lld/ELF/Arch/PPC64.cpp | ||
---|---|---|
121 | Sorry, I meant Unrecognized e_flags above |
I think we should still emit 2 separate error messages: