diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2022-04-04 12:40:44 +0200 |
---|---|---|
committer | Andrew Cooper <andrew.cooper3@citrix.com> | 2022-04-04 12:30:07 +0100 |
commit | e270af94280e6a9610705ebc1fdd1d7a9b1f8a98 (patch) | |
tree | 355be63e6bc3756e48a27f843d908590fe65a36a /Config.mk | |
parent | 7225f6e0cd3afd48b4d61c43dd8fead0f4c92193 (diff) | |
download | xen-e270af94280e6a9610705ebc1fdd1d7a9b1f8a98.tar.gz |
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>
Diffstat (limited to 'Config.mk')
-rw-r--r-- | Config.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -91,7 +91,7 @@ PYTHON_PREFIX_ARG ?= --prefix="$(prefix)" # # Usage: cflags-y += $(call cc-option,$(CC),-march=winchip-c6,-march=i586) cc-option = $(shell if test -z "`echo 'void*p=1;' | \ - $(1) $(2) -S -o /dev/null -x c - 2>&1 | grep -- $(2) -`"; \ + $(1) $(2) -c -o /dev/null -x c - 2>&1 | grep -- $(2:-Wa$(comma)%=%) -`"; \ then echo "$(2)"; else echo "$(3)"; fi ;) # cc-option-add: Add an option to compilation flags, but only if supported. |