{x86,x86_64}-qemu: fix "array subscript 0 is outside array bounds"
* see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523#c1
This commit is contained in:
parent
61a35370c9
commit
0e37b47498
2 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
export CROSS_COMPILE := x86_64-linux-gnu-
|
||||
CFLAGS += -m32 -fno-pic -fno-omit-frame-pointer -march=i386
|
||||
CFLAGS += -fcf-protection=none # remove endbr32 in Ubuntu 20.04 with a CPU newer than Comet Lake
|
||||
CFLAGS += --param=min-pagesize=0 # fix warning about "array subscript 0 is outside array bounds"
|
||||
ASFLAGS += -m32 -fno-pic
|
||||
LDFLAGS += -melf_i386
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
export CROSS_COMPILE := x86_64-linux-gnu-
|
||||
CFLAGS += -m64 -fPIC -mno-sse
|
||||
CFLAGS += --param=min-pagesize=0 # fix warning about "array subscript 0 is outside array bounds"
|
||||
ASFLAGS += -m64 -fPIC
|
||||
LDFLAGS += -melf_x86_64
|
||||
|
|
Loading…
Add table
Reference in a new issue