This adds an option to emit the command line -mattr/-march into the
attributes of an object file. This can useful to get objdump to
disassemble instructions that aren't in the base without forcing
users to add a .attribute to the assembly file.
The binutils assembler does this by default.
Similar option exists for ARM. I will wire it to a clang option in
another patch. Similar to https://reviews.llvm.org/D31813
As I understand it, your intent is that the stack alignment attribute isn't emitted with -riscv-add-build-attributes (which I assume matches GNU behaviuor) This file should probably test for that.