]> xenbits.xensource.com Git - xen.git/commit
Config.mk: correct PIE-related option(s) in EMBEDDED_EXTRA_CFLAGS
authorJan Beulich <jbeulich@suse.com>
Thu, 8 Sep 2022 07:25:26 +0000 (09:25 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 8 Sep 2022 07:25:26 +0000 (09:25 +0200)
commitecd6b9759919fa6335b0be1b5fc5cce29a30c4f1
tree450a532af7f7634f1449cef42d8b19b7809d6eb4
parent172015009a6acc20357a2698800e13058ba1d3db
Config.mk: correct PIE-related option(s) in EMBEDDED_EXTRA_CFLAGS

I haven't been able to find evidence of "-nopie" ever having been a
supported compiler option. The correct spelling is "-no-pie".
Furthermore like "-pie" this is an option which is solely passed to the
linker. The compiler only recognizes "-fpie" / "-fPIE" / "-fno-pie", and
it doesn't infer these options from "-pie" / "-no-pie".

Add the compiler recognized form, but for the possible case of the
variable also being used somewhere for linking keep the linker option as
well (with corrected spelling).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Config.mk