• R
    for executing init array functions, use function type with prototype · b3516058
    Rich Felker 提交于
    this is for consistency with the way it's done in in the dynamic
    linker, avoiding a deprecated C feature (non-prototype function
    types), and improving code generation. GCC unnecessarily uses the
    variadic calling convention (e.g. clearing rax on x86_64) when making
    a call where the argument types are not known for compatibility with
    wrong code which calls variadic functions this way. (C on the other
    hand is clear that such calls have undefined behavior.)
    b3516058
__libc_start_main.c 1.8 KB