mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
We can now link even smaller Python binaries. For example, the hello.com program in the Python build directory is a compiled linked executable of hello.py which just prints hello world. Using decentralized sections, we can make that binary 1.9mb in size (noting that python.com is 6.3 megs!) This works for nontrivial programs too. For example, say we want an APE binary that's equivalent to python.com -m http.server. Our makefile now builds such a binary using the new launcher and it's only 3.2mb in size since Python sources get turned into ELF objects, which tell our linker that we need things like native hashing algorithm code.
19 lines
517 B
C++
19 lines
517 B
C++
/* clang-format off */
|
|
/* File generated by Tools/ssl/make_ssl_data.py */
|
|
/* Generated on 2015-01-17T20:33:43.377453 */
|
|
|
|
#define ERR_LIB_PEM 1
|
|
#define ERR_LIB_X509 2
|
|
#define ERR_LIB_SSL 6
|
|
|
|
static struct py_ssl_library_code library_codes[] = {
|
|
{"PEM", ERR_LIB_PEM},
|
|
{"SSL", ERR_LIB_SSL},
|
|
{"X509", ERR_LIB_X509},
|
|
{ NULL }
|
|
};
|
|
|
|
static struct py_ssl_error_code error_codes[] = {
|
|
{"BAD_BASE64_DECODE", ERR_LIB_PEM, MBEDTLS_ERR_PEM_INVALID_DATA + MBEDTLS_ERR_BASE64_INVALID_CHARACTER},
|
|
{ NULL }
|
|
};
|