STINNER Victor <vstin...@python.org> added the comment:
python.o is the object file build by the C compiler from Programs/python.c. I don't see why anyone would need such object file. Programs/python.c: --- /* Minimal main program -- everything is loaded from the library */ #include "Python.h" #ifdef MS_WINDOWS int wmain(int argc, wchar_t **argv) { return Py_Main(argc, argv); } #else int main(int argc, char **argv) { return Py_BytesMain(argc, argv); } #endif --- $ objdump -d /opt/pymaster/lib/python3.10/config-3.10-x86_64-linux-gnu/python.o (...) Disassembly of section .text: 0000000000000000 <main>: 0: 55 push %rbp 1: 48 89 e5 mov %rsp,%rbp 4: 48 83 ec 10 sub $0x10,%rsp 8: 89 7d fc mov %edi,-0x4(%rbp) b: 48 89 75 f0 mov %rsi,-0x10(%rbp) f: 48 8b 55 f0 mov -0x10(%rbp),%rdx 13: 8b 45 fc mov -0x4(%rbp),%eax 16: 48 89 d6 mov %rdx,%rsi 19: 89 c7 mov %eax,%edi 1b: e8 00 00 00 00 callq 20 <main+0x20> 20: c9 leaveq 21: c3 retq $ objdump -t /opt/pymaster/lib/python3.10/config-3.10-x86_64-linux-gnu/python.o (...) 0000000000000000 *UND* 0000000000000000 Py_BytesMain ---------- nosy: +ned.deily, pablogsal _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42307> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com