Skip to content

Commit

Permalink
Merge pull request #8 from Crow-bar/allegrex-v4.4.0
Browse files Browse the repository at this point in the history
Disable use of GP-relative addressing
  • Loading branch information
diamant3 authored Jan 31, 2024
2 parents 8b556c1 + 565cdc0 commit 16a4637
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions config/mt-allegrex-psp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Disable use of GP-relative addressing
CFLAGS_FOR_TARGET += -mno-gpopt
CXXFLAGS_FOR_TARGET += -mno-gpopt
3 changes: 3 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -7026,6 +7026,9 @@ case "${target}" in
extra_arflags_for_target=" -X32_64"
extra_nmflags_for_target=" -B -X32_64"
;;
mipsallegrex*-psp-elf*)
target_makefile_frag="config/mt-allegrex-psp"
;;
esac

alphaieee_frag=/dev/null
Expand Down
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2565,6 +2565,9 @@ case "${target}" in
extra_arflags_for_target=" -X32_64"
extra_nmflags_for_target=" -B -X32_64"
;;
mipsallegrex*-psp-elf*)
target_makefile_frag="config/mt-allegrex-psp"
;;
esac

alphaieee_frag=/dev/null
Expand Down
2 changes: 1 addition & 1 deletion newlib/configure.host
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ case "${host_cpu}" in
;;
mipsallegrex*)
machine_dir=mips
newlib_cflags="${newlib_cflags} -G0 -DMALLOC_ALIGNMENT=16"
newlib_cflags="${newlib_cflags} -DMALLOC_ALIGNMENT=16"
;;
mips*)
machine_dir=mips
Expand Down

0 comments on commit 16a4637

Please sign in to comment.