This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

C mangling


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


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