Add architecture flag to zipobj

This commit is contained in:
Justine Tunney 2023-11-12 09:35:59 -08:00
parent bed77186c3
commit f25beb341c
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
5 changed files with 46 additions and 18 deletions

View file

@ -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,