Skip to content

Commit

Permalink
sys-libs/gcompat: fix arm64 dynamic loader name logic
Browse files Browse the repository at this point in the history
Due to arm* being above arm64 in the switch statement, arm64 would end
up with ld-linux-armhf.so.3 instead of ld-linux-aarch64.so.1. Move the
arm64 case above so the correct dynamic loader name is used.

Signed-off-by: Violet Purcell <[email protected]>
  • Loading branch information
vimproved committed Feb 7, 2025
1 parent d53ee42 commit a2c44a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys-libs/gcompat/gcompat-1.1.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ get_loader_name() {
case "$ABI" in
x86) echo "ld-linux.so.2" ;;
amd64) echo "ld-linux-x86-64.so.2" ;;
arm*) echo "ld-linux-armhf.so.3" ;;
arm64) echo "ld-linux-aarch64.so.1" ;;
arm*) echo "ld-linux-armhf.so.3" ;;
mips | powerpc | s390) echo "ld.so.1" ;;
esac
}
Expand Down

0 comments on commit a2c44a4

Please sign in to comment.