kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

02-coff-file-header.sh (456B)


      1 # Golden: -f file header summary for an x86_64 Windows .obj. Asserts
      2 # architecture/HAS_SYMS/HAS_RELOC reporting after wiring -f from
      3 # silent-noop to a real summary.
      4 
      5 cat > t.c <<'EOF'
      6 int main(void) { return 0; }
      7 EOF
      8 "$KIT" cc -target x86_64-windows -c t.c -o t.obj
      9 "$KIT" objdump -f t.obj | awk '
     10 /file format/ {print; next}
     11 /^architecture:/ {print; next}
     12 /^HAS_/ {print; next}
     13 /^start address/ {print; next}
     14 /^format: coff64/ {print "format: coff64"}'