This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Adding a new sub directory and new function
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: wuxi <wuxi at fudan dot edu dot cn>
- Cc: libc-help at sourceware dot org
- Date: Tue, 19 Aug 2008 09:03:35 -0400
- Subject: Re: Adding a new sub directory and new function
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=B+ENluf0ezBXW+kYJgm9qbuRnxC/0HWXwlESMWJlMxc=; b=LDebPr+zo4//gYH96Vs+LxK667XceFmrZbTGWAR43hqHC92fg4e/Er7eblsIk5cKns CpPhdzqB930TkkVWvx+7d8qnaHC1HEIUWTZfB0p4Yh9d5DCDsKOnY3ZK5CGL5cJcONP6 PHGCV50BkNstEHVP3hjQB+NYy3FKF8vA9yqQw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=pJjYbm3g/7SHSBDYFShSUcQiv85J4ez+kFOJZfRcaAZ2ICbgFzNT9zizhDCLHrTglt MpNUnO0dn8NaB4GUlDgeCfFKzfSle4wEG1pegIMkY4tAnpTHPE5JC19LgB5+sO5F1Umf yGrOGzIYcNZ5/iTHgUcW8IIeUFczFb0paETRM=
- References: <48A84CCE.1060206@fudan.edu.cn>
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.