This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld.so binding time


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]