Skip to content

Commit

Permalink
Toolchain: Enable IFUNC support for GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
timschumi authored and linusg committed Mar 19, 2022
1 parent b55a3a5 commit 5d0869d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Toolchain/Patches/gcc.patch
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,24 @@ index 357b0bed0..8e96b74e5 100644
*-*-darwin*)
tmake_file="t-darwin "
tm_file="${tm_file} darwin.h"
@@ -1084,6 +1091,19 @@ case ${target} in
@@ -1084,6 +1091,23 @@ case ${target} in
esac

case ${target} in
+i[34567]86-*-serenity*)
+ default_gnu_indirect_function=yes
+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h glibc-stdint.h i386/i386elf.h serenity.h i386/serenity.h"
+ ;;
+x86_64-*-serenity*)
+ default_gnu_indirect_function=yes
+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h glibc-stdint.h i386/i386elf.h i386/x86-64.h serenity.h i386/serenity.h"
+ ;;
+arm-*-serenity*)
+ default_gnu_indirect_function=yes
+ tm_file="dbxelf.h elfos.h arm/elf.h arm/aout.h glibc-stdint.h arm/serenity-elf.h ${tm_file} serenity.h"
+ ;;
+aarch64-*-serenity*)
+ default_gnu_indirect_function=yes
+ tm_file="${tm_file} dbxelf.h elfos.h aarch64/aarch64-elf.h glibc-stdint.h serenity.h"
+ tmake_file="${tmake_file} aarch64/t-aarch64"
+ ;;
Expand Down

0 comments on commit 5d0869d

Please sign in to comment.