Skip to content

Commit

Permalink
allegrex-psp: Disable use of GP-relative addressing
Browse files Browse the repository at this point in the history
  • Loading branch information
Crow-bar committed Jan 26, 2024
1 parent 8b556c1 commit 565cdc0
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 565cdc0

Please sign in to comment.