crust-firmware / crust

SCP (power management) firmware for sunxi SoCs
Other
150 stars 34 forks source link

fix commit for #212 fails with gcc-13 #214

Closed sarnold closed 10 months ago

sarnold commented 1 year ago

Attempting to build u-boot/TFA and crust with GCC 13 for pinebook OG fails with the following error due to fatal-warnings linker flag:

  CC      build/scp/drivers/regulator/regulator.o
  CC      build/scp/drivers/regulator/axp20x.o
  CC      build/scp/drivers/regulator/axp803.o
  CC      build/scp/drivers/watchdog/watchdog.o
  CC      build/scp/drivers/watchdog/sun6i-a31-wdt.o
  CC      build/scp/lib/bitfield.o
  AR      build/scp/lib.a
  LD      build/scp/scp.elf
/usr/libexec/gcc/or1k-linux-musl/ld: warning: build/scp/arch/or1k/start.o: missing .note.GNU-stack section implies executable stack
/usr/libexec/gcc/or1k-linux-musl/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
collect2: error: ld returned 1 exit status
make: *** [Makefile:201: build/scp/scp.elf] Error 1

Versions: