tools/firmware: do not add a .note.gnu.property section
authorRoger Pau Monné <roger.pau@citrix.com>
Wed, 6 Apr 2022 08:20:44 +0000 (10:20 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 6 Apr 2022 08:20:44 +0000 (10:20 +0200)
commit2c026fe1f159494b3ec05f19ddfb3d39ff901296
tree5493d9089d68292355a4ccb0019382556195d03f
parent548c443d9f1f11641bd52ea1f5c9035dcbdd6121
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>
master commit: e270af94280e6a9610705ebc1fdd1d7a9b1f8a98
master date: 2022-04-04 12:30:07 +0100
Config.mk
tools/firmware/Rules.mk