This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: question about tcb_size in arm


Hi Rain,

    When I read the source code of binutils-2.21.1/bfd/elf32-arm.c, I
found the tcb size defined here is 8,which is:

/* The size of the thread control block. */
#define TCB_SIZE 8

well, in my knowledge, the size of thread control block is larger than
8 bytes,  so why it is defined 8 bytes here?

I suspect that this is a misnomer. I think that in this case the "thread control block" being referred to is in fact the first few words in the .tls section rather than the header for a software thread. So the comment probably ought to read:


/* The size of the TLS control block. */

Cheers
  Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]