Home
last modified time | relevance | path

Searched full:script (Results 1 – 25 of 1373) sorted by relevance

12345678910>>...55

/llvm-project/lldb/test/API/commands/command/script/
H A Dpy_import1 script import sys, os
2 script sys.path.append(os.path.join(os.getcwd(), os.pardir))
3 script import welcome
4 script import bug11569
5 command script add welcome --class welcome.WelcomeCommand
6 command script add targetname --class welcome.TargetnameCommand
7 command script add longwait --function welcome.print_wait_impl
8 command script import mysto.py --allow-reload
9 command script add tell_sync --function welcome.check_for_synchro --synchronicity sync
10 command script add tell_async --function welcome.check_for_synchro --synchronicity async
[all …]
H A DTestCommandScript.py54 self.runCmd("command script delete welcome", check=False)
55 self.runCmd("command script delete targetname", check=False)
56 self.runCmd("command script delete longwait", check=False)
57 self.runCmd("command script delete mysto", check=False)
58 self.runCmd("command script delete tell_sync", check=False)
59 self.runCmd("command script delete tell_async", check=False)
60 self.runCmd("command script delete tell_curr", check=False)
61 self.runCmd("command script delete bug11569", check=False)
62 self.runCmd("command script delete takes_exe_ctx", check=False)
63 self.runCmd("command script delete decorated", check=False)
[all …]
/llvm-project/lld/test/ELF/linkerscript/
H A Dsections-padding.s5 # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =0x1122 }" > %t.script
6 # RUN: ld.lld -o %t.out --script %t.script %t
10 # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =(0x1100+0x22) }" > %t.script
11 # RUN: ld.lld -o %t.out --script %t.script %t
16 # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =0x99887766 }" > %t.script
17 # RUN: ld.lld -o %t.out --script %t.script %t
22 # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } }" > %t.script
23 # RUN: ld.lld -o %t.out --script %t.script %t
28 # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =777 }" > %t.script
29 # RUN: ld.lld -o %t.out --script %t.script %t
[all …]
H A Dsymbols.s7 # RUN: echo "SECTIONS {.text : {*(.text.*)} text_end = .;}" > %t.script
8 # RUN: ld.lld -o %t1 --script %t.script %t
13 # RUN: echo "SECTIONS { PROVIDE(newsym = 1);}" > %t.script
14 # RUN: ld.lld -o %t1 --script %t.script %t
19 # RUN: echo "SECTIONS { PROVIDE_HIDDEN(newsym = 1);}" > %t.script
20 # RUN: ld.lld -o %t1 --script %t.script %t
25 # RUN: echo "SECTIONS { PROVIDE(somesym =1);}" > %t.script
26 # RUN: ld.lld -o %t1 --script %t.script %t
32 # RUN: echo "SECTIONS { PROVIDE_HIDDEN(somesym =1);}" > %t.script
33 # RUN: ld.lld -o %t1 --script %t.script %t
[all …]
H A Dsort.s6 # RUN: echo "SECTIONS { .aaa : { *(.aaa.*) } }" > %t1.script
7 # RUN: ld.lld -o %t1 --script %t1.script %t2.o %t1.o
19 # RUN: echo "SECTIONS { .aaa : { *(SORT(.aaa.*)) } }" > %t2.script
20 # RUN: ld.lld -o %t2 --script %t2.script %t2.o %t1.o
33 # RUN: echo "SECTIONS { .aaa : { *(SORT(.aaa.*)) } }" > %t3.script
34 # RUN: ld.lld -o %t3 --script %t3.script %t1.o %t2.o
46 # RUN: echo "SECTIONS { .aaa : { KEEP (*(SORT(.aaa.*))) } }" > %t3.script
47 # RUN: ld.lld -o %t3 --script %t3.script %t2.o %t1.o
51 # RUN: echo "SECTIONS { .aaa : { *(SORT_BY_NAME(.aaa.*)) } }" > %t4.script
52 # RUN: ld.lld -o %t4 --script %t4.script %t2.o %t1.o
[all …]
H A Dregion-alias.s7 # RUN: INCLUDE \"%t.script.inc\" \
11 # RUN: }" > %t.script
14 # RUN: echo 'REGION_ALIAS ("ALIAS_TEXT", "ROM");' > %t.script.inc
15 # RUN: echo "REGION_ALIAS (\"ALIAS_DATA\", RAM);" >> %t.script.inc
16 # RUN: ld.lld %t --script %t.script -o %t2
22 # RUN: echo "REGION_ALIAS (\"ALIAS_TEXT\", ROM);" > %t.script.inc
23 # RUN: echo "REGION_ALIAS (\"ALIAS_DATA\", ROM);" >> %t.script.inc
24 # RUN: ld.lld %t --script %t.script
[all...]
H A Dlinkerscript.s6 # RUN: echo "EXTERN( undef undef2 \"undef3\" \"undef4@@other\")" > %t.script
7 # RUN: ld.lld %t -o %t2 %t.script
10 # RUN: echo "OUTPUT_FORMAT(elf64-x86-64) /*/*/ GROUP(\"%t\" )" > %t.script
11 # RUN: ld.lld -o %t2 %t.script
15 # RUN: echo "OUTPUT(\"%t.out\")" > %t.script
16 # RUN: ld.lld %t.script %t
19 # RUN: echo "SEARCH_DIR(/lib/foo/blah)" > %t.script
20 # RUN: ld.lld %t.script %t -o %t.out
23 # RUN: echo ";SEARCH_DIR(x);SEARCH_DIR(y);" > %t.script
24 # RUN: ld.lld %t.script %t -o %t.out
[all …]
H A Dassert.s4 # RUN: echo "SECTIONS { ASSERT(1, fail) }" > %t1.script
5 # RUN: ld.lld -shared -o %t1 --script %t1.script %t1.o
8 # RUN: echo "SECTIONS { ASSERT(0, fail) }" > %t3.script
9 # RUN: not ld.lld -o /dev/null -T %t3.script %t1.o 2>&1 | FileCheck --check-prefix=FAIL %s
10 # RUN: ld.lld -o /dev/null -T %t3.script %t1.o --noinhibit-exec 2>&1 | FileCheck --check-prefix=FAI…
13 # RUN: echo "SECTIONS { . = ASSERT(0x1000, fail); }" > %t4.script
14 # RUN: ld.lld -shared -o %t4 --script %t4.script %t1.o
17 # RUN: echo "SECTIONS { .foo : { *(.foo) } }" > %t5.script
18 # RUN: echo "ASSERT(SIZEOF(.foo) == 8, fail);" >> %t5.script
19 # RUN: ld.lld -shared -o %t5 --script %t5.script %t1.o
[all …]
H A Dinfo-section-type.s7 # RUN: echo "SECTIONS { .bar : { *(.foo) } };" > %t.script
8 # RUN: ld.lld -o %t --script %t.script %t.o
16 # RUN: echo "SECTIONS { .bar (COPY) : { *(.foo) } };" > %t.script
17 # RUN: ld.lld -o %t --script %t.script %t.o
24 # RUN: echo "SECTIONS { .bar (INFO) : { *(.foo) } };" > %t.script
25 # RUN: ld.lld -o %t --script %t.script %t.o
28 # RUN: echo "SECTIONS { .bar (OVERLAY) : { *(.foo) } };" > %t.script
29 # RUN: ld.lld -o %t --script %t.script %t.o
32 # RUN: echo "SECTIONS { .bar (INFO) : { . += 1; } };" > %t.script
33 # RUN: ld.lld -o %t --script %t.script %t.o
[all …]
H A Dnumbers.s16 # RUN: }" > %t.script
17 # RUN: ld.lld %t --script %t.script -o %t2
31 # RUN: echo "SECTIONS { . = 0x11h; }" > %t2.script
32 # RUN: not ld.lld %t --script %t2.script -o /dev/null 2>&1 | \
36 # RUN: echo "SECTIONS { . = 0x11k; }" > %t3.script
37 # RUN: not ld.lld %t --script %t3.script -o /dev/null 2>&1 | \
41 # RUN: echo "SECTIONS { . = 0x11m; }" > %t4.script
42 # RUN: not ld.lld %t --script %t4.script -o /dev/null 2>&1 | \
46 # RUN: echo "SECTIONS { . = 1zh; }" > %t5.script
47 # RUN: not ld.lld %t --script %t5.script -o /dev/null 2>&1 | \
[all …]
H A Dmemory-err.s6 # RUN: echo 'MEMORY { ram (rwx) : XYZ = 0x8000 } }' > %t.script
7 # RUN: not ld.lld -o /dev/null -T %t.script %t.o 2>&1 | FileCheck --check-prefix=ERR1 %s
8 # ERR1: {{.*}}.script:1: expected one of: ORIGIN, org, or o
12 # RUN: echo 'MEMORY { ram (rwx) : ORIGIN = 0x8000, XYZ = 256K } }' > %t.script
13 # RUN: not ld.lld -o /dev/null -T %t.script %t.o 2>&1 | FileCheck --check-prefix=ERR2 %s
14 # ERR2: {{.*}}.script:1: expected one of: LENGTH, len, or l
18 # RUN: echo 'MEMORY { ram (rwx) : o = 8, l = 256K ram (rx) : o = 0, l = 256K }' > %t.script
19 # RUN: not ld.lld -o /dev/null -T %t.script %t.o 2>&1 | FileCheck --check-prefix=ERR3 %s
20 # ERR3: {{.*}}.script:1: region 'ram' already defined
28 # RUN: }' > %t.script
[all...]
H A Dsymbol-reserved.s6 # RUN: echo "PROVIDE_HIDDEN(newsym = __ehdr_start + 5);" > %t.script
7 # RUN: ld.lld -o %t1 %t.script %t
12 # RUN: ld.lld -o %t1.so %t.script %t -shared
17 # RUN: echo "PROVIDE_HIDDEN(newsym = ALIGN(__ehdr_start, CONSTANT(MAXPAGESIZE)) + 5);" > %t.script
18 # RUN: ld.lld -o %t1 %t.script %t
23 # RUN: echo "PROVIDE_HIDDEN(newsym = ALIGN(3, 8) + 10);" > %t.script
24 # RUN: ld.lld -o %t1 %t.script %t
28 # RUN: echo "PROVIDE_HIDDEN(newsym = ALIGN(11, 8) - 10);" > %t.script
29 # RUN: ld.lld -o %t1 %t.script %t
33 # RUN: echo "PROVIDE_HIDDEN(newsym = ALIGN(_end, CONSTANT(MAXPAGESIZE)) + 5);" > %t.script
[all …]
H A Dphdrs.s78 ## TODO: If script doesn't contain PHDRS {} block then default phdr is always
H A Dfill-exec-sections.s5 ## otherwise specified in the script.
6 # RUN: echo "SECTIONS { .exec : { *(.exec*) } }" > %t.script
7 # RUN: ld.lld -o %t.out --script %t.script %t
13 # RUN: echo "SECTIONS { .exec : { *(.exec*) }=0x11223344 }" > %t2.script
14 # RUN: ld.lld -o %t2.out --script %t2.script %t
16 # RUN: echo "SECTIONS { .exec : { FILL(0x11223344); *(.exec*) } }" > %t3.script
17 # RUN: ld.lld -o %t3.out --script %t3.script %t
24 # RUN: echo "SECTIONS { .exec : { *(.exec*) }=0x00000000 }" > %t4.script
25 # RUN: ld.lld -o %t4.out --script %t4.script %t
27 # RUN: echo "SECTIONS { .exec : { FILL(0x00000000); *(.exec*) } }" > %t5.script
[all …]
H A Dsubalign.s4 # RUN: echo "SECTIONS { .aaa : { *(.aaa.*) } }" > %t1.script
5 # RUN: ld.lld -o %t1 --script %t1.script %t1.o
18 # RUN: echo "SECTIONS { .aaa : SUBALIGN(1) { *(.aaa.*) } }" > %t2.script
19 # RUN: ld.lld -o %t2 --script %t2.script %t1.o
28 # RUN: echo "SECTIONS { . = 0x32; .aaa : SUBALIGN(.) { *(.aaa*) } }" > %t3.script
29 # RUN: not ld.lld %t1.o --script %t3.script -o /dev/null 2>&1 | FileCheck --check-prefix=ERR1 %s
30 # ERR1: {{.*}}.script:1: unable to get location counter value
33 # RUN: echo "SECTIONS { .aaa : SUBALIGN(0) { *(.aaa*) } }" > %t4.script
34 # RUN: ld.lld %t1.o --script %t4.script -o %t4
38 # RUN: echo "SECTIONS { .aaa : SUBALIGN(3) { *(.aaa*) } }" > %t5.script
[all …]
H A Daddress-expr-symbols.s4 # RUN: echo "SECTIONS { .bar (foo) : { } };" > %t.script
5 # RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s
8 # RUN: echo "SECTIONS { .bar : AT(foo) { } };" > %t.script
9 # RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s
11 # RUN: echo "SECTIONS { .bar : ALIGN(foo) { } };" > %t.script
12 # RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s
14 # RUN: echo "SECTIONS { .bar : SUBALIGN(foo) { } };" > %t.script
15 # RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s
/llvm-project/lld/test/ELF/
H A Dversion-script.s6 # RUN: echo "{ global: foo1; foo3; local: *; };" > %t.script
8 # RUN: ld.lld --version-script %t.script -shared %t.o %t2.so -o %t.so --fatal-warnings
11 # RUN: echo "# comment" > %t3.script
12 # RUN: echo "{ local: *; # comment" >> %t3.script
13 # RUN: echo -n "}; # comment" >> %t3.script
14 # RUN: ld.lld --version-script %t3.script -shared %t.o %t2.so -o %t3.so
18 # RUN: echo "VERSION_1.0 { global : foo1; local : *; };" > %t4.script
19 # RUN: echo "VERSION_2.0 { global: foo3; local: *; };" >> %t4.script
20 # RUN: ld.lld --version-script %t4.script -shared %t.o %t2.so -o %t4.so --fatal-warnings
23 # RUN: echo "VERSION_1.0 { global: foo1; local: *; };" > %t5.script
[all …]
H A Dversion-script-complex-wildcards.s4 # RUN: echo "FOO { global: extern \"C++\" { ab[c]*; }; };" > %t.script
5 # RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so
10 # RUN: echo "FOO { global: extern \"C++\" { ab[b]*; }; };" > %t1.script
11 # RUN: ld.lld --version-script %t1.script -shared %t.o -o %t1.so
16 # RUN: echo "FOO { global: extern \"C++\" { ab[a-b]*; }; };" > %t2.script
17 # RUN: ld.lld --version-script %t2.script -shared %t.o -o %t2.so
20 # RUN: echo "FOO { global: extern \"C++\" { ab[a-c]*; }; };" > %t3.script
21 # RUN: ld.lld --version-script %t3.script -shared %t.o -o %t3.so
26 # RUN: echo "FOO { global: extern \"C++\" { ab[a-bc-d]*; }; };" > %t4.script
27 # RUN: ld.lld --version-script %t4.script -shared %t.o -o %t4.so
[all …]
H A Darm-exidx-order.s8 // Use Linker script to place .ARM.exidx in between .text and orphan sections
11 // RUN: .ARM.exidx : { *(.ARM.exidx) } } " > %t.script
12 // RUN: ld.lld --no-merge-exidx-entries --script %t.script %tcantunwind %t -o %t3
13 …: llvm-objdump -d --triple=armv7a-none-linux-gnueabi %t3 | FileCheck --check-prefix=CHECK-SCRIPT %s
14 …-objdump -s --triple=armv7a-none-linux-gnueabi %t3 | FileCheck --check-prefix=CHECK-SCRIPT-EXIDX %s
54 /// Check default no linker script order.
131 /// Check linker script order. The .ARM.exidx section will be inserted after
134 // CHECK-SCRIPT: Disassembly of section .text:
135 // CHECK-SCRIPT-EMPTY:
136 // CHECK-SCRIPT-NEXT: <func4>:
[all …]
H A Dversion-script-noundef.s3 # RUN: echo "VERSION_1.0 { global: bar; };" > %t.script
5 # RUN: not ld.lld --version-script %t.script -shared %t.o -o /dev/null \
7 # RUN: ld.lld --version-script %t.script -shared --undefined-version %t.o -o %t.so
8 # RUN: not ld.lld --version-script %t.script -shared --no-undefined-version \
10 # ERR1: version script assignment of 'VERSION_1.0' to symbol 'bar' failed: symbol not defined
12 # RUN: echo "VERSION_1.0 { global: und; };" > %t2.script
13 # RUN: not ld.lld --version-script %t2.script -shared --no-undefined-version \
15 # ERR2: version script assignment of 'VERSION_1.0' to symbol 'und' failed: symbol not defined
17 # RUN: echo "VERSION_1.0 { local: und; };" > %t3.script
18 # RUN: not ld.lld --version-script %t3.script -shared --no-undefined-version \
[all …]
H A Dnote-contiguous.s19 // RUN: echo "SECTIONS { .note : { *(.note.a) *(.note.b) } }" > %t.script
20 // RUN: ld.lld %t.o --script %t.script -o %t2
21 // RUN: llvm-readobj -l %t2 | FileCheck -check-prefix=SCRIPT %s
23 // SCRIPT: Type: PT_NOTE
24 // SCRIPT-NEXT: Offset:
25 // SCRIPT-NEXT: VirtualAddress:
26 // SCRIPT-NEXT: PhysicalAddress:
27 // SCRIPT-NEXT: FileSize: 16
28 // SCRIPT-NEXT: MemSize: 16
29 // SCRIPT-NEXT: Flags [
[all …]
H A Dversion-script-symver.s2 ## Test how .symver interacts with --version-script.
7 # RUN: echo 'v1 { local: foo1; }; v2 { local: foo2; };' > %t1.script
8 # RUN: ld.lld --version-script %t1.script -shared %t.o -o %t1.so
16 # RUN: echo 'v1 { local: foo*; }; v2 {};' > %t2.script
17 # RUN: ld.lld --version-script %t2.script -shared %t.o -o %t2.so
24 # RUN: echo 'v1 { global: *; local: foo*; }; v2 {};' > %t3.script
25 # RUN: ld.lld --version-script %t3.script -shared %t.o -o %t3.so
32 # RUN: echo 'v1 { global: foo*; local: *; }; v2 { global: foo4; local: *; };' > %t4.script
33 # RUN: ld.lld --version-script %t4.script -shared %t.o -o %t4.so
42 # RUN: ld.lld --version-script %t4.script -pie --export-dynamic %t.o -o %t4
[all …]
H A Derror-handling-script-linux.test7 # RUN: not ld.lld -lidontexist --error-handling-script=%t/a.sh 0.o 2>&1 |\
9 # RUN: not ld.lld -lidontexist --error-handling-script=./notexist 0.o 2>&1 |\
10 # RUN: FileCheck --check-prefix=CHECK-SCRIPT-DOES-NOT-EXIST %s
13 # RUN: not ld.lld --error-handling-script=./a.sh 1.o 2>&1 |\
17 # RUN: not ld.lld --demangle --error-handling-script=./a.sh 2.o 2>&1 |\
19 # RUN: not ld.lld --no-demangle --error-handling-script=./a.sh 2.o 2>&1 |\
23 # RUN: not ld.lld --error-handling-script=%t/a.sh 3.o 2>&1 |\
26 # CHECK-LIB:script: info: called with missing-lib idontexist
29 # CHECK-SCRIPT-DOES-NOT-EXIST: error: unable to find library -lidontexist
30 # CHECK-SCRIPT
[all...]
/llvm-project/lldb/test/API/commands/command/script/import/
H A DTestImport.py23 self.runCmd("command script delete foo2cmd", check=False)
24 self.runCmd("command script delete foocmd", check=False)
25 self.runCmd("command script delete foobarcmd", check=False)
26 self.runCmd("command script delete barcmd", check=False)
27 self.runCmd("command script delete barothercmd", check=False)
28 self.runCmd("command script delete TPcommandA", check=False)
29 self.runCmd("command script delete TPcommandB", check=False)
34 self.runCmd("command script import ./foo/foo.py --allow-reload")
35 self.runCmd("command script import ./foo/foo2.py --allow-reload")
36 self.runCmd("command script import ./foo/bar/foobar.py --allow-reload")
[all …]
/llvm-project/lldb/test/Shell/ScriptInterpreter/Python/
H A Dexit.test3 # RUN: %lldb -o 'script quit' | FileCheck %s --check-prefix SILENT
4 # RUN: %lldb -o 'script quit()' | FileCheck %s --check-prefix SILENT
6 # RUN: %lldb -o 'script exit' | FileCheck %s --check-prefix SILENT
7 # RUN: %lldb -o 'script exit()' | FileCheck %s --check-prefix SILENT
9 # RUN: echo -e 'script\nquit' > %t
12 # RUN: echo -e 'script\nexit' > %t
15 # SILENT-NOT: Script exited with code
17 # RUN: %lldb -o 'script quit(100+23)' | FileCheck %s --check-prefix VERBOSE
18 # RUN: %lldb -o 'script exit(100+23)' | FileCheck %s --check-prefix VERBOSE
20 # RUN: echo -e 'script\nexit(100+23)' > %t
[all …]

12345678910>>...55