What is the purpose of %fs?



While trying to analyse a problem with snmpd, I stumbled across instructions in the tls/libc that reference %fs. Where could I find information about the contents of that segment?

I've single-stepped through a small printf("Hello, world")-program but have found no instruction which populates this segment, yet it seems to exist and contains data.


-- Josef Möllers (Pinguinpfleger bei FSC) If failure had no penalty success would not be a prize -- T. Pratchett

.



Relevant Pages

  • Re: What is the purpose of %fs?
    ... instructions in the tls/libc that reference %fs. ... Where could I find information about the contents of that segment? ... It does crash at a different location where it reads from an already freed location. ...
    (comp.os.linux.development.system)
  • Re: What is the purpose of %fs?
    ... instructions in the tls/libc that reference %fs. ... have found no instruction which populates this segment, ... The "application visible part" of these registers is 16 bit, no matter whether the architecture is 16, 32 or 64 bit! ...
    (comp.os.linux.development.system)
  • Re: What is the purpose of %fs?
    ... instructions in the tls/libc that reference %fs. ... have found no instruction which populates this segment, ... The "E" is in parens because the register did not appear ...
    (comp.os.linux.development.system)
  • Re: Value Types and Reference Types
    ... Well, the compiler writes IL, and the CLR defines certain IL instructions ... shape just to avoid boxing; chances are that the indirection you'd need to ... I thought the Int32 was the reference type for int. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Off Topic: use delete to destroy primitive/object types but memory is not freed
    ... Each C pointer is a descriptor that names an address ... upon loading a segment register. ... Part requires that the compiler emit instructions whose sole ...
    (comp.lang.c)