mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-28 13:30:29 +00:00
Support symbol tables with arch specific name
This commit is contained in:
parent
bd49ea1c3a
commit
801224df67
5 changed files with 30 additions and 19 deletions
|
@ -66,6 +66,10 @@
|
|||
#include "libc/x/x.h"
|
||||
#include "third_party/getopt/getopt.internal.h"
|
||||
|
||||
#ifndef NDEBUG
|
||||
__static_yoink("zipos");
|
||||
#endif
|
||||
|
||||
#define MANUAL \
|
||||
"\
|
||||
SYNOPSIS\n\
|
||||
|
@ -843,6 +847,10 @@ int main(int argc, char *argv[]) {
|
|||
int ws, opt, exitcode;
|
||||
char *s, *p, *q, **envp;
|
||||
|
||||
#ifndef NDEBUG
|
||||
ShowCrashReports();
|
||||
#endif
|
||||
|
||||
mode = firstnonnull(getenv("MODE"), MODE);
|
||||
|
||||
/*
|
||||
|
|
|
@ -47,7 +47,7 @@ static bool ShouldCompress(const char *name, size_t namesize,
|
|||
static void GetDosLocalTime(int64_t utcunixts, uint16_t *out_time,
|
||||
uint16_t *out_date) {
|
||||
struct tm tm;
|
||||
CHECK_NOTNULL(localtime_r(&utcunixts, &tm));
|
||||
CHECK_NOTNULL(gmtime_r(&utcunixts, &tm));
|
||||
*out_time = DOS_TIME(tm.tm_hour, tm.tm_min, tm.tm_sec);
|
||||
*out_date = DOS_DATE(tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday + 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue