This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients nascheme, ned.deily, pablogsal, vstinner
Date 2020-11-10.11:47:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605008874.25.0.258464025841.issue42307@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-11-10 11:47:54vstinnersetrecipients: + vstinner, nascheme, ned.deily, pablogsal
2020-11-10 11:47:54vstinnersetmessageid: <1605008874.25.0.258464025841.issue42307@roundup.psfhosted.org>
2020-11-10 11:47:54vstinnerlinkissue42307 messages
2020-11-10 11:47:53vstinnercreate