I am trying to understand the source code of atexit() function,but I stuck on this (line 409 ~ line 415, PTR_DEMANGLE())
I can understand the inline asm need do a vital progress
xor rdx,QWORD PTR fs:0x30
But I didn't really get what's fs:0x30 meaning for
So I searched for google but only got the meaning of fs:0x30 on Windows ,which is reletive to PEB
And I also tried search for PTR_DEMANGLE() function directly,and found this,but it didn't help
And this also raise me a new question:
Say,I need to know usage of fs:0xXX,that is few-used. which manual-book should I refer to ,directly? ELF standard document?
BTW,English is not my first language,this post may have some syntax or spelling mistakes,please forgive me,thx very much!