This is the mail archive of the mailing list for the glibc 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: [PATCH] Add private_function for private functions within glibc [BZ #21598]

On Tue, 8 Aug 2017, H.J. Lu wrote:

> since shadow stack doesn't match return stack.  We need to use register
> indirect branch via %ecx.  That means only 2 parameters can be passed
> in registers for external function calls with lazy binding when shadow
> stack is enabled.  However, internal_function, which should be used only
> with hidden function within, are also used with private function
> calls between different shared objects of glibc.

Should we consider it part of the ABI that users' shared objects, not just 
glibc ones, may export functions with regparm calling convention?  It's 
certainly possible at present, but I don't know how widely used it is.

> This patch removes USE_REGPARMS from  Instead, it defines
> internal_function and private_function, which is for private function
> calss between different shared objects, in  Currently,
> sysdeps/i386/ defines private_function as

I'd expect these definitions to go in a sysdeps header (for which i386 has 
a version overriding the default version), as suggested in 
<>, rather than 
being defined directly from a file.

Joseph S. Myers

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