]> xenbits.xensource.com Git - xen.git/commit
tools/firmware: do not add a .note.gnu.property section
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 4 Apr 2022 10:40:44 +0000 (12:40 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 4 Apr 2022 11:30:07 +0000 (12:30 +0100)
commite270af94280e6a9610705ebc1fdd1d7a9b1f8a98
tree355be63e6bc3756e48a27f843d908590fe65a36a
parent7225f6e0cd3afd48b4d61c43dd8fead0f4c92193
tools/firmware: do not add a .note.gnu.property section

Prevent the assembler from creating a .note.gnu.property section on
the output objects, as it's not useful for firmware related binaries,
and breaks the resulting rombios image.

This requires modifying the cc-option Makefile macro so it can test
assembler options (by replacing the usage of the -S flag with -c) and
also stripping the -Wa, prefix if present when checking for the test
output.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Config.mk
tools/firmware/Rules.mk