kit

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

01-coff-file-header.sh (457B)


      1 # Golden: -f file header summary for an aarch64 Windows .obj.
      2 # Mirrors the x86_64-windows case so the arch dispatch in -f and
      3 # the COFF code path both stay covered.
      4 
      5 cat > t.c <<'EOF'
      6 int main(void) { return 0; }
      7 EOF
      8 "$KIT" cc -target aarch64-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"}'