Lines Matching +full:max +full:- +full:size
1 ## Check that yaml2obj limits the output size by default to 10 MB.
3 ## --max-size command line option.
8 ## 0x9FFEC0 = 0xA00000 (10 MB) - sizeof(Elf_Ehdr) - sizeof(Elf_Shdr) * 4.
9 # RUN: yaml2obj %s -DSIZE=0x9FFEC0 --docnum=1 -o /dev/null 2>&1
10 # RUN: not yaml2obj %s -DSIZE=0x9FFEC1 --docnum=1 -o /dev/null 2>&1 | \
11 # RUN: FileCheck %s --check-prefix=ERROR
13 # ERROR: error: the desired output size is greater than permitted. Use the --max-size option to cha…
17 # RUN: yaml2obj %s -DSIZE=0x9FFEC1 --docnum=1 --max-size=0xA00008 -o /dev/null
19 --- !ELF
25 - Name: .section
27 Size: [[SIZE]]
28 - Name: .strtab
30 Size: 0x0
31 - Name: .shstrtab
33 Size: 0x0
37 # RUN: not yaml2obj %s --docnum=2 -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERROR
39 --- !ELF
45 - Name: .foo
47 - Name: .bar
50 Size: 0x0
52 ## Check that we can drop the limit with the use of --max-size=0.
53 # RUN: yaml2obj --max-size=0 %s --docnum=2 -o /dev/null