This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
C mangling
- From: phi gcc <phi dot gcc at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 11 Nov 2016 15:43:32 +0100
- Subject: C mangling
- Authentication-results: sourceware.org; auth=none
Hi Gurus,
I got functions named like this in my symbol table
[21711] |0xffffffff81228250|0x000001e5|FUNC |LOCAL|0|
.text|ep_scan_ready_list.isra.7
This is a linux kernel. I gues this is a magle name for the function
ep_scan_ready_list() that is has only 2 call sites like this
ep_scan_ready_list(
arg->ep, ep_read_events_proc, NULL, call_nests + 1, arg->locked);
ep_scan_ready_list(
ep, ep_send_events_proc, &esed, 0, false);
The common arg is a function ptr 'ep_read_events_proc' so I guess gcc
removed this paramter and called the cloned function instead.
My question is. Is there a ref doc that explain how it is mangled. Can
we use the .7 for somethings.
Are there stuff in the dwarf that would help an unwinder crossing this
symbol name to retrieve the removed parameter.
Thanx in advance
Cheers,
Phi