All of lore.kernel.org
 help / color / mirror / Atom feed
* data structure for NT_386_LTS note entry in coredump
@ 2016-10-05 16:13 ` 慕冬亮
  0 siblings, 0 replies; 2+ messages in thread
From: 慕冬亮 @ 2016-10-05 16:13 UTC (permalink / raw)
  To: kernelnewbies, linux-kernel

Dear all,

I have a question about data structure for NT_386_LTS note entry in
coredump and where is the code to store this entry into coredump.

When I analyzed coredump and corresponding assembly code, I found
there is one memory addressing with gs. GS is a selector used by
glibc. But its base address is stored in the kernel space which I
don't know from "gdb executable core". But fortunately I find a note
entry with type NT_386_LTS in my coredump.

The following is the content of this note entry,
>> LINUX                 48  386_TLS
>>     index: 6, base: 0xb7fd57c0, limit: 0x000fffff, flags: 0x00000051
>>     index: 7, base: 0x00000000, limit: 0x00000000, flags: 0x00000028
>>     index: 8, base: 0x00000000, limit: 0x00000000, flags: 0x00000028

Q1: Is there a data structure defined in header file like /usr/include/elf.h?
Q2: Where is the code to store this entry into coredump?

--
My best regards to you.

     No System Is Safe!
     Dongliang Mu

^ permalink raw reply	[flat|nested] 2+ messages in thread

* data structure for NT_386_LTS note entry in coredump
@ 2016-10-05 16:13 ` 慕冬亮
  0 siblings, 0 replies; 2+ messages in thread
From: 慕冬亮 @ 2016-10-05 16:13 UTC (permalink / raw)
  To: kernelnewbies

Dear all,

I have a question about data structure for NT_386_LTS note entry in
coredump and where is the code to store this entry into coredump.

When I analyzed coredump and corresponding assembly code, I found
there is one memory addressing with gs. GS is a selector used by
glibc. But its base address is stored in the kernel space which I
don't know from "gdb executable core". But fortunately I find a note
entry with type NT_386_LTS in my coredump.

The following is the content of this note entry,
>> LINUX                 48  386_TLS
>>     index: 6, base: 0xb7fd57c0, limit: 0x000fffff, flags: 0x00000051
>>     index: 7, base: 0x00000000, limit: 0x00000000, flags: 0x00000028
>>     index: 8, base: 0x00000000, limit: 0x00000000, flags: 0x00000028

Q1: Is there a data structure defined in header file like /usr/include/elf.h?
Q2: Where is the code to store this entry into coredump?

--
My best regards to you.

     No System Is Safe!
     Dongliang Mu

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-05 16:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-05 16:13 data structure for NT_386_LTS note entry in coredump 慕冬亮
2016-10-05 16:13 ` 慕冬亮

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.