X32 uses 32-bit ELF object files with 32-bit alignment, so the .note.gnu.property section needs to be emitted as it is for X86.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
It wasn't just the alignment that was wrong, the section contains its own size as a field, which had an incorrect value as a result of the alignment.
llvm/test/CodeGen/X86/note-cet-property.ll | ||
---|---|---|
3 | llc writes to stdout by default when reading from stdin, and writes to <file>.s otherwise, so just dropping < doesn't work. It's possible to use -o - instead to explicitly specify writing to stdout but the other lines in this file and the other three CET test files all use llc < %s rather than llc %s -o -, so for consistency I'd rather leave it if that's okay too? |
llvm/test/CodeGen/X86/note-cet-property.ll | ||
---|---|---|
3 | I forgot it:) |
While here, const int