Skip to content

Commit

Permalink
Previous versions of GNU LD do not support the --no-warn-rwx-segment …
Browse files Browse the repository at this point in the history
…option. Remove --fatal-warnings option instead
  • Loading branch information
jlbirccyn committed Feb 26, 2024
1 parent dc0d533 commit 0ced5f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions goil/templates/config/cortex-m/armv7em/buildOptions.oil
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ CPU buildOptions {
ASFLAGS = "-Wall"; // All warnings on
ASFLAGS = "--fatal-warnings"; // A warning is an error

LDFLAGS = "--no-warn-rwx-segment"; // fix gnu-ld 2.39 snafu
LDFLAGS = "--fatal-warnings"; // A warning is an error
// LDFLAGS = "--no-warn-rwx-segment"; // fix gnu-ld 2.39 snafu
// LDFLAGS = "--fatal-warnings"; // A warning is an error
LDFLAGS = "--warn-common"; // Warn when a common symbol is combined with another common symbol
LDFLAGS = "--no-undefined"; // Report unresolved symbol references
LDFLAGS = "--gc-sections"; // Remove unused sections. Works with -ffunction-sections and -fdata-sections, see above
Expand Down

0 comments on commit 0ced5f7

Please sign in to comment.