This is the mail archive of the libc-help@sourceware.org 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: Adding a new sub directory and new function


On Sun, Aug 17, 2008 at 12:07 PM, wuxi <wuxi@fudan.edu.cn> wrote:
> So how to make the gcc find '__restore' and '__restore_rt'? Am I missing
> something here? __libc_sigaction also uses these two symbols, why can it
> find __restore and __restore_rt?

The code for __restore and __restore_rt is emitted as an assembly
function with the hidden attribute.

Only code from sigaction.c can access those functions.

Your options are:
1. Copy them into your shift_sigaction.c file.
2. Remove attribute_hidden from the declarations of the variables, but
beware of name collisions.

Cheers,
Carlos.


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