tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Addition of ppoll(2), a wrapper around pollts(2)

On Mon, May 25, 2020 at 11:24:14AM +0200, Joerg Sonnenberger wrote:
> On Mon, May 25, 2020 at 10:06:22AM +0200, Martin Husemann wrote:
> > On Mon, May 25, 2020 at 12:20:53PM +0530, Apurva Nandan wrote:
> > > The problem with __weak_alias is that they only work inside the same C file
> > > where the original symbol is defined, and don't work outside that file for
> > > that symbol.
> > 
> > That is not true.
> It is. ELF symbols are all attached an actual byte range. There is no
> way to create an indirect symbol.

We must be talking about different things here. The weak alias has to be
defined in the same file as the syscall stub, but the resulting symbol
would work from everywhere - right?


Home | Main Index | Thread Index | Old Index