tech-toolchain archive

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

Re: CVS commit: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common



In article <20180524160906.GA8550%britannica.bec.de@localhost>,
Joerg Sonnenberger  <joerg%bec.de@localhost> wrote:
>On Thu, May 24, 2018 at 02:45:15PM +0200, Martin Husemann wrote:
>> On Thu, May 24, 2018 at 02:39:01PM +0200, Kamil Rytarowski wrote:
>> > It looks like there is no better within the C ABI to serialize arbitrary
>> > arguments. We want for example 2 integers returned from SYS_pipe.
>> 
>> You could do that with a minor variant of the version I suggested.
>> 
>> > I'm going to switch sanitizers to dlsym(3) trickery (RTLD_NEXT) and see
>> > how good it will work.
>> 
>> Why not just call the "_" versions? I.e. mmap(...) -> _mmap(...).
>
>It should be the double underscore version, i.e. __mmap. That's the
>"raw" system call. The single underscore version is primarily for
>libc-internal use, but also a customization point i.e. for libpthread.

We could call them _libc_mmap() etc.

christos



Home | Main Index | Thread Index | Old Index