Details
Details
- Reviewers
ruiu • espindola
Diff Detail
Diff Detail
Event Timeline
| ELF/Arch/ARM.cpp | ||
|---|---|---|
| 63 | This is at least odd, as 0xd4 is not a trap on ARM. Should we just directly represent the fact that the trap instruction has different sizes in different architectures by using an StringRef or ArrayRef? | |
| ELF/Arch/ARM.cpp | ||
|---|---|---|
| 63 | Also, nop on powerpc64 (which we are getting more support for) is 60 00 00 00. | |
Comment Actions
This is towards a wrong direction. uint32_t is a deliberate choice because as Rafael pointed out uint8_t doesn't work for most processors. You cannot expect that trap instruction is 1 byte long.
This is at least odd, as 0xd4 is not a trap on ARM.
Should we just directly represent the fact that the trap instruction has different sizes in different architectures by using an StringRef or ArrayRef?