What’s the purpose of _dl_sysinfo_int80?

I mean, why not to issue the int instruction directly?

Dump of assembler code for function execve:
   [omitted]
   0x0806c282 <+18>:    call   *0x80e99f0
   [omitted]
End of assembler dump.
(gdb) disas *0x80e99f0
Dump of assembler code for function _dl_sysinfo_int80:
   0x0806ed70 <+0>: int    $0x80
   0x0806ed72 <+2>: ret    
End of assembler dump.

From my inexperienced point of view, _dl_sysinfo_int80 adds nothing but overhead.


Source: gcc

Leave a Reply