summaryrefslogtreecommitdiffstats
path: root/mozglue/linker/tests/TestZipData.S
blob: 5fbb82545197996072cb444fd874e4a787e7da31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.macro zip_data name, path
  .global \name
  .data
  .balign 16
  \name:
  .incbin "\path"
  .L\name\()_END:
  .size \name, .L\name\()_END-\name
  .global \name\()_SIZE
  .data
  .balign 4
  \name\()_SIZE:
  .int .L\name\()_END-\name
.endm

zip_data TEST_ZIP, "test.zip"
zip_data NO_CENTRAL_DIR_ZIP, "no_central_dir.zip"