Release Cosmopolitan v3.3

This change upgrades to GCC 12.3 and GNU binutils 2.42. The GNU linker
appears to have changed things so that only a single de-duplicated str
table is present in the binary, and it gets placed wherever the linker
wants, regardless of what the linker script says. To cope with that we
need to stop using .ident to embed licenses. As such, this change does
significant work to revamp how third party licenses are defined in the
codebase, using `.section .notice,"aR",@progbits`.

This new GCC 12.3 toolchain has support for GNU indirect functions. It
lets us support __target_clones__ for the first time. This is used for
optimizing the performance of libc string functions such as strlen and
friends so far on x86, by ensuring AVX systems favor a second codepath
that uses VEX encoding. It shaves some latency off certain operations.
It's a useful feature to have for scientific computing for the reasons
explained by the test/libcxx/openmp_test.cc example which compiles for
fifteen different microarchitectures. Thanks to the upgrades, it's now
also possible to use newer instruction sets, such as AVX512FP16, VNNI.

Cosmo now uses the %gs register on x86 by default for TLS. Doing it is
helpful for any program that links `cosmo_dlopen()`. Such programs had
to recompile their binaries at startup to change the TLS instructions.
That's not great, since it means every page in the executable needs to
be faulted. The work of rewriting TLS-related x86 opcodes, is moved to
fixupobj.com instead. This is great news for MacOS x86 users, since we
previously needed to morph the binary every time for that platform but
now that's no longer necessary. The only platforms where we need fixup
of TLS x86 opcodes at runtime are now Windows, OpenBSD, and NetBSD. On
Windows we morph TLS to point deeper into the TIB, based on a TlsAlloc
assignment, and on OpenBSD/NetBSD we morph %gs back into %fs since the
kernels do not allow us to specify a value for the %gs register.

OpenBSD users are now required to use APE Loader to run Cosmo binaries
and assimilation is no longer possible. OpenBSD kernel needs to change
to allow programs to specify a value for the %gs register, or it needs
to stop marking executable pages loaded by the kernel as mimmutable().

This release fixes __constructor__, .ctor, .init_array, and lastly the
.preinit_array so they behave the exact same way as glibc.

We no longer use hex constants to define math.h symbols like M_PI.
This commit is contained in:
Justine Tunney 2024-02-20 11:12:09 -08:00
parent d3ff48c63f
commit 957c61cbbf
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
736 changed files with 13726 additions and 9445 deletions

View file

@ -96,11 +96,6 @@ PYTHON_PROVIDE("_decimal.setcontext");
PYTHON_YOINK("numbers");
PYTHON_YOINK("collections");
asm(".ident\t\"\\n\
libmpdec (BSD-2)\\n\
Copyright 2008-2016 Stefan Krah\"");
asm(".include \"libc/disclaimer.inc\"");
#if !defined(MPD_VERSION_HEX) || MPD_VERSION_HEX < 0x02040100
#error "libmpdec version >= 2.4.1 required"
#endif

View file

@ -31,11 +31,7 @@
#include "third_party/python/Modules/_decimal/libmpdec/constants.h"
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
#include "third_party/python/Modules/_decimal/libmpdec/typearith.h"
asm(".ident\t\"\\n\\n\
libmpdec (BSD-2)\\n\
Copyright 2008-2016 Stefan Krah\"");
asm(".include \"libc/disclaimer.inc\"");
__static_yoink("libmpdec_notice");
/*********************************************************************/
/* Calculations in base MPD_RADIX */

View file

@ -29,11 +29,7 @@
*/
#include "third_party/python/Modules/_decimal/libmpdec/constants.h"
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
asm(".ident\t\"\\n\\n\
libmpdec (BSD-2)\\n\
Copyright 2008-2016 Stefan Krah\"");
asm(".include \"libc/disclaimer.inc\"");
__static_yoink("libmpdec_notice");
/* number-theory.c */
const mpd_uint_t mpd_moduli[3] = {

View file

@ -30,11 +30,7 @@
#include "libc/calls/calls.h"
#include "libc/sysv/consts/sig.h"
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
asm(".ident\t\"\\n\\n\
libmpdec (BSD-2)\\n\
Copyright 2008-2016 Stefan Krah\"");
asm(".include \"libc/disclaimer.inc\"");
__static_yoink("libmpdec_notice");
void
mpd_dflt_traphandler(mpd_context_t *ctx)

View file

@ -36,11 +36,7 @@
#include "third_party/python/Modules/_decimal/libmpdec/numbertheory.h"
#include "third_party/python/Modules/_decimal/libmpdec/sixstep.h"
#include "third_party/python/Modules/_decimal/libmpdec/umodarith.h"
asm(".ident\t\"\\n\\n\
libmpdec (BSD-2)\\n\
Copyright 2008-2016 Stefan Krah\"");
asm(".include \"libc/disclaimer.inc\"");
__static_yoink("libmpdec_notice");
/* Bignum: Fast convolution using the Number Theoretic Transform.

View file

@ -31,11 +31,7 @@
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
#include "third_party/python/Modules/_decimal/libmpdec/numbertheory.h"
#include "third_party/python/Modules/_decimal/libmpdec/umodarith.h"
asm(".ident\t\"\\n\\n\
libmpdec (BSD-2)\\n\
Copyright 2008-2016 Stefan Krah\"");
asm(".include \"libc/disclaimer.inc\"");
__static_yoink("libmpdec_notice");
/* Bignum: Chinese Remainder Theorem, extends the maximum transform length. */

View file

@ -32,11 +32,7 @@
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
#include "third_party/python/Modules/_decimal/libmpdec/numbertheory.h"
#include "third_party/python/Modules/_decimal/libmpdec/umodarith.h"
asm(".ident\t\"\\n\\n\
libmpdec (BSD-2)\\n\
Copyright 2008-2016 Stefan Krah\"");
asm(".include \"libc/disclaimer.inc\"");
__static_yoink("libmpdec_notice");
/* Bignum: The actual transform routine (decimation in frequency). */

View file

@ -33,11 +33,7 @@
#include "third_party/python/Modules/_decimal/libmpdec/fnt.h"
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
#include "third_party/python/Modules/_decimal/libmpdec/numbertheory.h"
asm(".ident\t\"\\n\\n\
libmpdec (BSD-2)\\n\
Copyright 2008-2016 Stefan Krah\"");
asm(".include \"libc/disclaimer.inc\"");
__static_yoink("libmpdec_notice");
/* Bignum: Fast transform for medium-sized coefficients. */

View file

@ -33,11 +33,7 @@
#include "third_party/python/Modules/_decimal/libmpdec/sixstep.h"
#include "third_party/python/Modules/_decimal/libmpdec/transpose.h"
#include "third_party/python/Modules/_decimal/libmpdec/umodarith.h"
asm(".ident\t\"\\n\\n\
libmpdec (BSD-2)\\n\
Copyright 2008-2016 Stefan Krah\"");
asm(".include \"libc/disclaimer.inc\"");
__static_yoink("libmpdec_notice");
/*
Cache Efficient Matrix Fourier Transform

View file

@ -35,16 +35,12 @@
#include "third_party/python/Modules/_decimal/libmpdec/io.h"
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
#include "third_party/python/Modules/_decimal/libmpdec/typearith.h"
__static_yoink("libmpdec_notice");
#if __GNUC__ >= 11
#pragma GCC diagnostic ignored "-Wmisleading-indentation"
#endif
asm(".ident\t\"\\n\\n\
libmpdec (BSD-2)\\n\
Copyright 2008-2016 Stefan Krah\"");
asm(".include \"libc/disclaimer.inc\"");
/* This file contains functions for decimal <-> string conversions, including
PEP-3101 formatting for numeric types. */

View file

@ -31,11 +31,7 @@
#include "third_party/python/Modules/_decimal/libmpdec/mpalloc.h"
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
#include "third_party/python/Modules/_decimal/libmpdec/typearith.h"
asm(".ident\t\"\\n\\n\
libmpdec (BSD-2)\\n\
Copyright 2008-2016 Stefan Krah\"");
asm(".include \"libc/disclaimer.inc\"");
__static_yoink("libmpdec_notice");
/* Guaranteed minimum allocation for a coefficient. May be changed once
at program start using mpd_setminalloc(). */

View file

@ -36,11 +36,7 @@
#include "third_party/python/Modules/_decimal/libmpdec/mpalloc.h"
#include "third_party/python/Modules/_decimal/libmpdec/typearith.h"
#include "third_party/python/Modules/_decimal/libmpdec/umodarith.h"
asm(".ident\t\"\\n\\n\
libmpdec (BSD-2)\\n\
Copyright 2008-2016 Stefan Krah\"");
asm(".include \"libc/disclaimer.inc\"");
__static_yoink("libmpdec_notice");
#define MPD_NEWTONDIV_CUTOFF 1024L

View file

@ -0,0 +1,3 @@
__notice(libmpdec_notice, "\
libmpdec (BSD-2)\n\
Copyright 2008-2016 Stefan Krah");

View file

@ -31,11 +31,7 @@
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
#include "third_party/python/Modules/_decimal/libmpdec/numbertheory.h"
#include "third_party/python/Modules/_decimal/libmpdec/umodarith.h"
asm(".ident\t\"\\n\\n\
libmpdec (BSD-2)\\n\
Copyright 2008-2016 Stefan Krah\"");
asm(".include \"libc/disclaimer.inc\"");
__static_yoink("libmpdec_notice");
/* Bignum: Initialize the Number Theoretic Transform. */

View file

@ -34,11 +34,7 @@
#include "third_party/python/Modules/_decimal/libmpdec/sixstep.h"
#include "third_party/python/Modules/_decimal/libmpdec/transpose.h"
#include "third_party/python/Modules/_decimal/libmpdec/umodarith.h"
asm(".ident\t\"\\n\\n\
libmpdec (BSD-2)\\n\
Copyright 2008-2016 Stefan Krah\"");
asm(".include \"libc/disclaimer.inc\"");
__static_yoink("libmpdec_notice");
/*
Cache Efficient Matrix Fourier Transform

View file

@ -34,11 +34,7 @@
#include "third_party/python/Modules/_decimal/libmpdec/constants.h"
#include "third_party/python/Modules/_decimal/libmpdec/mpdecimal.h"
#include "third_party/python/Modules/_decimal/libmpdec/typearith.h"
asm(".ident\t\"\\n\\n\
libmpdec (BSD-2)\\n\
Copyright 2008-2016 Stefan Krah\"");
asm(".include \"libc/disclaimer.inc\"");
__static_yoink("libmpdec_notice");
#define BUFSIZE 4096
#define SIDE 128

View file

@ -25,10 +25,8 @@
PYTHON_PROVIDE("_random");
PYTHON_PROVIDE("_random.Random");
asm(".ident\t\"\\n\\n\
mt19937 (BSD-3)\\n\
Copyright 1997-2004 Makoto Matsumoto and Takuji Nishimura\"");
asm(".include \"libc/disclaimer.inc\"");
__notice(python_mt19937_notice, "Python mt19937 (BSD-3)\n\
Copyright 1997-2004 Makoto Matsumoto and Takuji Nishimura");
/* ------------------------------------------------------------------
The code in this module was based on a download from:

View file

@ -25,11 +25,6 @@
*/
#include "third_party/python/Modules/_sqlite/cache.h"
asm(".ident\t\"\\n\\n\
pysqlite (zlib license)\\n\
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
asm(".include \"libc/disclaimer.inc\"");
/* only used internally */
pysqlite_Node* pysqlite_new_node(PyObject* key, PyObject* data)
{

View file

@ -36,11 +36,6 @@
PYTHON_YOINK("sqlite3.dump");
asm(".ident\t\"\\n\\n\
pysqlite (zlib license)\\n\
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
asm(".include \"libc/disclaimer.inc\"");
#define ACTION_FINALIZE 1
#define ACTION_RESET 2

View file

@ -27,11 +27,6 @@
#include "third_party/python/Modules/_sqlite/module.h"
#include "third_party/python/Modules/_sqlite/util.h"
asm(".ident\t\"\\n\\n\
pysqlite (zlib license)\\n\
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
asm(".include \"libc/disclaimer.inc\"");
PyObject* pysqlite_cursor_iternext(pysqlite_Cursor* self);
static const char errmsg_fetch_across_rollback[] = "Cursor needed to be reset because of commit/rollback and can no longer be fetched from.";

View file

@ -27,11 +27,6 @@
#include "third_party/python/Modules/_sqlite/microprotocols.h"
#include "third_party/python/Modules/_sqlite/prepare_protocol.h"
asm(".ident\t\"\\n\\n\
pysqlite (zlib license)\\n\
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
asm(".include \"libc/disclaimer.inc\"");
/** the adapters registry **/
PyObject *psyco_adapters;

View file

@ -32,12 +32,11 @@
#include "third_party/python/Modules/_sqlite/row.h"
#include "third_party/python/Modules/_sqlite/statement.h"
PYTHON_PROVIDE("_sqlite3");
__notice(pysqlite_notice, "\
pysqlite (zlib license)\n\
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>");
asm(".ident\t\"\\n\\n\
pysqlite (zlib license)\\n\
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
asm(".include \"libc/disclaimer.inc\"");
PYTHON_PROVIDE("_sqlite3");
/* #if SQLITE_VERSION_NUMBER >= 3003003 */
/* #define HAVE_SHARED_CACHE */

View file

@ -25,11 +25,6 @@
*/
#include "third_party/python/Modules/_sqlite/prepare_protocol.h"
asm(".ident\t\"\\n\\n\
pysqlite (zlib license)\\n\
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
asm(".include \"libc/disclaimer.inc\"");
int pysqlite_prepare_protocol_init(pysqlite_PrepareProtocol* self, PyObject* args, PyObject* kwargs)
{
return 0;

View file

@ -26,11 +26,6 @@
#include "third_party/python/Modules/_sqlite/cursor.h"
#include "third_party/python/Modules/_sqlite/row.h"
asm(".ident\t\"\\n\\n\
pysqlite (zlib license)\\n\
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
asm(".include \"libc/disclaimer.inc\"");
void pysqlite_row_dealloc(pysqlite_Row* self)
{
Py_XDECREF(self->data);

View file

@ -30,11 +30,6 @@
#include "third_party/python/Modules/_sqlite/statement.h"
#include "third_party/python/Modules/_sqlite/util.h"
asm(".ident\t\"\\n\\n\
pysqlite (zlib license)\\n\
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
asm(".include \"libc/disclaimer.inc\"");
/* prototypes */
static int pysqlite_check_remaining_sql(const char* tail);

View file

@ -26,11 +26,6 @@
#include "third_party/python/Modules/_sqlite/connection.h"
#include "third_party/python/Modules/_sqlite/module.h"
asm(".ident\t\"\\n\\n\
pysqlite (zlib license)\\n\
Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>\"");
asm(".include \"libc/disclaimer.inc\"");
int pysqlite_step(sqlite3_stmt* statement, pysqlite_Connection* connection)
{
int rc;

View file

@ -39,10 +39,9 @@ PYTHON_PROVIDE("_sre.compile");
PYTHON_PROVIDE("_sre.getcodesize");
PYTHON_PROVIDE("_sre.getlower");
asm(".ident\t\"\\n\\n\
SRE 2.2.2 (Python license)\\n\
Copyright 1997-2002 Secret Labs AB\"");
asm(".include \"libc/disclaimer.inc\"");
__notice(python_sre_notice, "\
SRE 2.2.2 (Python license)\n\
Copyright 1997-2002 Secret Labs AB");
/*
* Secret Labs' Regular Expression Engine

View file

@ -46,11 +46,9 @@
USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
asm(".ident\t\"\\n\\n\
expat (MIT License)\\n\
Copyright (c) 1997-2000 Thai Open Source Software Center Ltd\\n\
Copyright (c) 2000-2017 Expat development team\"");
asm(".include \"libc/disclaimer.inc\"");
__notice(expat_notice, "expat (MIT License)\n\
Copyright (c) 1997-2000 Thai Open Source Software Center Ltd\n\
Copyright (c) 2000-2017 Expat development team");
#define XML_BUILDING_EXPAT 1

View file

@ -30,12 +30,6 @@
USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
asm(".ident\t\"\\n\\n\
expat (MIT License)\\n\
Copyright (c) 1997-2000 Thai Open Source Software Center Ltd\\n\
Copyright (c) 2000-2017 Expat development team\"");
asm(".include \"libc/disclaimer.inc\"");
#include "third_party/python/Modules/expat/expat_config.h"
#include "third_party/python/Modules/expat/expat_external.h"
#include "third_party/python/Modules/expat/internal.inc"

View file

@ -30,12 +30,6 @@
USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
asm(".ident\t\"\\n\\n\
expat (MIT License)\\n\
Copyright (c) 1997-2000 Thai Open Source Software Center Ltd\\n\
Copyright (c) 2000-2017 Expat development team\"");
asm(".include \"libc/disclaimer.inc\"");
#include "third_party/python/Modules/expat/expat_config.h"
#include "third_party/python/Modules/expat/expat_external.h"
#include "third_party/python/Modules/expat/internal.inc"

View file

@ -8,10 +8,9 @@
#include "third_party/python/Include/pymem.h"
#include "third_party/python/Modules/hashtable.h"
asm(".ident\t\"\\n\\n\
cfuhash (bsd-3)\\n\
Copyright (c) 2005 Don Owens\"");
asm(".include \"libc/disclaimer.inc\"");
__notice(cfuhash_notice, "\
cfuhash (bsd-3)\n\
Copyright (c) 2005 Don Owens");
/* The implementation of the hash table (_Py_hashtable_t) is based on the
cfuhash project:

View file

@ -40,12 +40,13 @@ PYTHON_PROVIDE("parser.st2tuple");
PYTHON_PROVIDE("parser.suite");
PYTHON_PROVIDE("parser.tuple2st");
asm(".ident\t\"\\n\\n\
parsermodule (Python license)\\n\
Copyright 1995-1996 by Virginia Polytechnic Institute & State\\n\
University, Blacksburg, Virginia, USA, and Fred L. Drake, Jr., Reston,\\n\
Virginia, USA. Portions copyright 1991-1995 by Stichting Mathematisch\\n\
Centrum, Amsterdam, The Netherlands.\"");
__notice(parsermodule_notice, "\
parsermodule (Python license)\n\
Copyright 1995-1996 by Virginia Polytechnic Institute & State\n\
University, Blacksburg, Virginia, USA, and Fred L. Drake, Jr., Reston,\n\
Virginia, USA. Portions copyright 1991-1995 by Stichting Mathematisch\n\
Centrum, Amsterdam, The Netherlands.");
static const char parser_copyright_string[] =
"Copyright 1995-1996 by Virginia Polytechnic Institute & State\n\
University, Blacksburg, Virginia, USA, and Fred L. Drake, Jr., Reston,\n\

View file

@ -59,11 +59,10 @@ PYTHON_PROVIDE("syslog.openlog");
PYTHON_PROVIDE("syslog.setlogmask");
PYTHON_PROVIDE("syslog.syslog");
asm(".ident\t\"\\n\\n\
syslogmodule (mit)\\n\
Copyright 1994 by Lance Ellinghouse\\n\
Cathedral City, California Republic, United States of America\"");
asm(".include \"libc/disclaimer.inc\"");
__notice(python_syslogmodule_notice, "\
syslogmodule (MIT License)\n\
Copyright 1994 by Lance Ellinghouse\n\
Cathedral City, California Republic, United States of America");
/***********************************************************
Copyright 1994 by Lance Ellinghouse,

View file

@ -432,12 +432,10 @@ static const unsigned char _PyUnicode_ChangeIndex_3_2_0_rodata[365+1][2] = { /*
{ 2, 0x02},
{0},
};
__attribute__((__constructor__(99)))
static textstartup void _PyUnicode_ChangeIndex_3_2_0_init(void) {
rldecode2(_PyUnicode_ChangeIndex_3_2_0, (void *)_PyUnicode_ChangeIndex_3_2_0_rodata);
}
const void *const _PyUnicode_ChangeIndex_3_2_0_ctor[] initarray = {
_PyUnicode_ChangeIndex_3_2_0_init,
};
unsigned char _PyUnicode_ChangeData_3_2_0[31360];
static const unsigned char _PyUnicode_ChangeData_3_2_0_rodata[1390+1][2] = { /* 8.8648% profit */
@ -1833,12 +1831,10 @@ static const unsigned char _PyUnicode_ChangeData_3_2_0_rodata[1390+1][2] = { /*
{ 16, 0x00},
{0},
};
__attribute__((__constructor__(99)))
static textstartup void _PyUnicode_ChangeData_3_2_0_init(void) {
rldecode2(_PyUnicode_ChangeData_3_2_0, (void *)_PyUnicode_ChangeData_3_2_0_rodata);
}
const void *const _PyUnicode_ChangeData_3_2_0_ctor[] initarray = {
_PyUnicode_ChangeData_3_2_0_init,
};
const _PyUnicode_ChangeRecord *_PyUnicode_GetChange_3_2_0(Py_UCS4 n)
{

View file

@ -1152,6 +1152,7 @@ static const unsigned short _PyUnicode_CompIndex_rodata[1146+1][2] = { /* 38.598
{ 1, 0x2a9},
{0},
};
__attribute__((__constructor__(99)))
static textstartup void _PyUnicode_CompIndex_init(void) {
int i, j, k;
for (k = i = 0; i < 1146; ++i) {
@ -1160,9 +1161,6 @@ static textstartup void _PyUnicode_CompIndex_init(void) {
}
}
}
const void *const _PyUnicode_CompIndex_ctor[] initarray = {
_PyUnicode_CompIndex_init,
};
const unsigned int _PyUnicode_CompData[1449] = {
0, 0, 0, 922746880, 17, 9011200, 3758096384, 1101, 0, 50594176,

View file

@ -1446,12 +1446,10 @@ static const unsigned char _PyUnicode_DecompIndex1_rodata[159+1][2] = { /* 3.653
{ 39, 0x00},
{0},
};
__attribute__((__constructor__(99)))
static textstartup void _PyUnicode_DecompIndex1_init(void) {
rldecode2(_PyUnicode_DecompIndex1, (void *)_PyUnicode_DecompIndex1_rodata);
}
const void *const _PyUnicode_DecompIndex1_ctor[] initarray = {
_PyUnicode_DecompIndex1_init,
};
const unsigned short _PyUnicode_DecompIndex2[13312] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

View file

@ -11647,12 +11647,10 @@ static const unsigned char _PyUnicode_PhrasebookOffset1_rodata[206+1][2] = { /*
{253, 0x34},
{0},
};
__attribute__((__constructor__(99)))
static textstartup void _PyUnicode_PhrasebookOffset1_init(void) {
rldecode2(_PyUnicode_PhrasebookOffset1, (void *)_PyUnicode_PhrasebookOffset1_rodata);
}
const void *const _PyUnicode_PhrasebookOffset1_ctor[] initarray = {
_PyUnicode_PhrasebookOffset1_init,
};
const unsigned int _PyUnicode_PhrasebookOffset2[25056] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 786433, 37748832,

View file

@ -674,6 +674,7 @@ static const unsigned short _PyUnicode_RecordsIndex1_rodata[323+1][2] = { /* 7.4
{ 1, 0x10a},
{0},
};
__attribute__((__constructor__(99)))
static textstartup void _PyUnicode_RecordsIndex1_init(void) {
int i, j, k;
for (k = i = 0; i < 323; ++i) {
@ -682,9 +683,6 @@ static textstartup void _PyUnicode_RecordsIndex1_init(void) {
}
}
}
const void *const _PyUnicode_RecordsIndex1_ctor[] initarray = {
_PyUnicode_RecordsIndex1_init,
};
unsigned short _PyUnicode_RecordsIndex2[34176];
static const unsigned short _PyUnicode_RecordsIndex2_rodata[4990+1][2] = { /* 29.2018% profit */
@ -5680,6 +5678,7 @@ static const unsigned short _PyUnicode_RecordsIndex2_rodata[4990+1][2] = { /* 29
{ 2, 0x00},
{0},
};
__attribute__((__constructor__(99)))
static textstartup void _PyUnicode_RecordsIndex2_init(void) {
int i, j, k;
for (k = i = 0; i < 4990; ++i) {
@ -5688,7 +5687,3 @@ static textstartup void _PyUnicode_RecordsIndex2_init(void) {
}
}
}
const void *const _PyUnicode_RecordsIndex2_ctor[] initarray = {
_PyUnicode_RecordsIndex2_init,
};

View file

@ -881,6 +881,7 @@ static const unsigned short _PyUnicode_TypeRecordsIndex1_rodata[370+1][2] = { /*
{ 1, 0x112},
{0},
};
__attribute__((__constructor__(99)))
static textstartup void _PyUnicode_TypeRecordsIndex1_init(void) {
int i, j, k;
for (k = i = 0; i < 370; ++i) {
@ -889,9 +890,6 @@ static textstartup void _PyUnicode_TypeRecordsIndex1_init(void) {
}
}
}
const void *const _PyUnicode_TypeRecordsIndex1_ctor[] initarray = {
_PyUnicode_TypeRecordsIndex1_init,
};
unsigned short _PyUnicode_TypeRecordsIndex2[35200];
static const unsigned short _PyUnicode_TypeRecordsIndex2_rodata[4889+1][2] = { /* 27.7784% profit */
@ -5786,6 +5784,7 @@ static const unsigned short _PyUnicode_TypeRecordsIndex2_rodata[4889+1][2] = { /
{ 2, 0x00},
{0},
};
__attribute__((__constructor__(99)))
static textstartup void _PyUnicode_TypeRecordsIndex2_init(void) {
int i, j, k;
for (k = i = 0; i < 4889; ++i) {
@ -5794,7 +5793,3 @@ static textstartup void _PyUnicode_TypeRecordsIndex2_init(void) {
}
}
}
const void *const _PyUnicode_TypeRecordsIndex2_ctor[] initarray = {
_PyUnicode_TypeRecordsIndex2_init,
};