mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-14 23:09:16 +00:00
Add architecture flag to zipobj
This commit is contained in:
parent
bed77186c3
commit
f25beb341c
5 changed files with 46 additions and 18 deletions
2
third_party/chibicc/as.c
vendored
2
third_party/chibicc/as.c
vendored
|
@ -3944,7 +3944,7 @@ static void Objectify(struct As *a, int path) {
|
|||
char *p;
|
||||
int i, j, s, e;
|
||||
struct ElfWriter *elf;
|
||||
elf = elfwriter_open(a->strings.p[path], 0644);
|
||||
elf = elfwriter_open(a->strings.p[path], 0644, EM_NEXGEN32E);
|
||||
for (i = 0; i < a->symbols.n; ++i) {
|
||||
if (!IsLiveSymbol(a, i)) continue;
|
||||
p = strndup(a->slices.p[a->symbols.p[i].name].p,
|
||||
|
|
2
third_party/python/pyobj.c
vendored
2
third_party/python/pyobj.c
vendored
|
@ -646,7 +646,7 @@ Objectify(void)
|
|||
memcpy(pycdata + sizeof(header), mardata, marsize);
|
||||
yoinked = newinterner();
|
||||
forcepulls = newinterner();
|
||||
elf = elfwriter_open(outpath, 0644);
|
||||
elf = elfwriter_open(outpath, 0644, 0);
|
||||
elfwriter_cargoculting(elf);
|
||||
if (ispkg) {
|
||||
elfwriter_zip(elf, zipdir, zipdir, strlen(zipdir),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue