ld.so binding time
Yubin Ruan
ablacktshirt@gmail.com
Tue Aug 1 08:08:00 GMT 2017
2017-08-01 16:04 GMT+08:00 Andreas Schwab <schwab@suse.de>:
> On Aug 01 2017, Yubin Ruan <ablacktshirt@gmail.com> wrote:
>
>> So, for the `open' symbol,
>> open_t open;
>
> This is a pointer.
>
>> is different from
>> int open(const char *pathname, int flags, ...);
>
> This is a function.
If those are two different types, then why would ld.so resolve a
`open()' system call to a pointer and then make it throw a segfault?
If those are two different types, then I think ld.so should bypass my
"customized pointer". But it seems not to be the case.
Yubin
More information about the Binutils
mailing list