Re:Learning to Read X86 Assembly Language
by wolfgke on Sunday November 27, 2016 @05:47PM
(#13052076)
The segment registers fs and gs still exist in x86-64 and are used.
Under Windows gs (under x86-32 fs) points to the Thread Information Block (TIB):
> https://en.wikipedia.org/wiki/Win32_Thread_Information_Block
Under Linux gs is used for thread-local storage (TLS).
But "as a typical programmer" indeed you only have to worry about the internal details of this if you are an OS developer, otherwise you can simply use the appropriate segment override prefix and otherwise don't care about it.
Re:Learning to Read X86 Assembly Language
by CalChris on Monday November 28, 2016 @12:10AM
(#13053542)
Google's Native Client uses segmentation to enforce sandboxing.
http://static.googleusercontent.com/media/research.google.co...
Re:Learning to Read X86 Assembly Language
by qwertyuiop924 on Sunday November 27, 2016 @08:02PM
(#13052710)
Oh. Handy. I didn't know that.
Stupid outdated resources...
The examples in the post are clearly x86-64 running in 64 bit mode. I.e. it's running in flat model... there is no segmentation to worry about.