How to set %gs base on Darwin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|# _seems_ to make %gs base point to address in %rdi|
|# on x86-64 Darwin|
|# (what would be amd64_set_gsbase on FreeBSD, or|
|# arch_prctl with ARCH_SET_GS on Linux)|
|# Could find exacty zero documentation on this!|
|movl $0x3000003, %eax;|
May 26, 2023
Thank you for your quick response!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Do you know is it possible to set %fs from user-space application?