Adding a new sub directory and new function

Carlos O'Donell carlos@systemhalted.org
Tue Aug 19 13:04:00 GMT 2008


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.



More information about the Libc-help mailing list