Skip to content

Conversation

@stronnag
Copy link
Collaborator

@stronnag stronnag commented Jul 6, 2023

gcc 12 and later generate a mainly useless linker warning:

warning: <TARGET>.elf has a LOAD segment with RWX permissions

For the SITL, ex-MacOS, suppress this.

Tested on:

  • Arch Linux (gcc 13.1.1)
  • FreeBSD (gcc 13.0.1)
  • Cygwin (gcc 11.3)
  • MacOS (clang)

Note: If it is ever possible to build reliable firmware with cmake and gcc 12 or later, the same directive may be applied to firmware builds.

@stronnag stronnag added this to the 7.0 milestone Jul 6, 2023
@stronnag
Copy link
Collaborator Author

stronnag commented Jul 6, 2023

Well, well gcc, 11.3 / Cygwin works, 11.3 Linux doesn't.

@stronnag stronnag closed this Jul 6, 2023
@stronnag stronnag reopened this Jul 6, 2023
@DzikuVx DzikuVx merged commit 5b0410a into master Jul 7, 2023
@DzikuVx DzikuVx deleted the jh_suppress_sitl_ld_rwx_warning branch July 7, 2023 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants