From d83bea2ba8a419e2b3cd4fd4b3367e25fae6339d Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Mon, 18 Oct 2021 01:40:39 +1000 Subject: [PATCH] release: Move eris to ubuntu 21.10. - Update readme. - php7 -> php8. - Fix python-coverage. - Also need python decorator module. - Replaced Mcrt1 with rotatingtree since Mcrt1 started raising a new warning. --- README.md | 4 +- eris/tools.py | 2 +- eris/tools.toml | 6 +- install-dependencies | 2 +- make-readme.py | 2 +- tests/golden-files/input/Mcrt1.o | Bin 404 -> 0 bytes tests/golden-files/input/rotatingtree.o | Bin 0 -> 14040 bytes .../results/objdump_disassemble-Mcrt1_o | 5 - .../objdump_disassemble-rotatingtree_o | 5 + .../results/objdump_headers-Mcrt1_o | 23 -- .../results/objdump_headers-rotatingtree_o | 290 +++++++++++++++ ...7_syntax-root_php => php8_syntax-root_php} | 0 tests/golden-files/results/readelf-Mcrt1_o | 47 --- .../results/readelf-rotatingtree_o | 338 ++++++++++++++++++ tests/tools_test.py | 10 +- 15 files changed, 646 insertions(+), 88 deletions(-) delete mode 100644 tests/golden-files/input/Mcrt1.o create mode 100644 tests/golden-files/input/rotatingtree.o delete mode 100644 tests/golden-files/results/objdump_disassemble-Mcrt1_o create mode 100644 tests/golden-files/results/objdump_disassemble-rotatingtree_o delete mode 100644 tests/golden-files/results/objdump_headers-Mcrt1_o create mode 100644 tests/golden-files/results/objdump_headers-rotatingtree_o rename tests/golden-files/results/{php7_syntax-root_php => php8_syntax-root_php} (100%) delete mode 100644 tests/golden-files/results/readelf-Mcrt1_o create mode 100644 tests/golden-files/results/readelf-rotatingtree_o diff --git a/README.md b/README.md index 1c72282..9d27b22 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Eris maintains an up-to-date set of reports for every file in a codebase. ## Installation -### Ubuntu (21.04) +### Ubuntu (21.10) # git clone https://github.com/ahamilton/eris # cd eris @@ -44,7 +44,7 @@ File types(100) | Tools(60) .rb | [ruby_syntax](http://www.ruby-lang.org/) .lua | [lua_syntax](http://www.lua.org) • [lua_check](https://github.com/mpeterv/luacheck) .js | [js_syntax](http://nodejs.org/) -.php | [php7_syntax](https://en.wikipedia.org/wiki/PHP) +.php | [php8_syntax](https://en.wikipedia.org/wiki/PHP) .go | [go_vet](https://github.com/golang/go) • [godoc](https://github.com/golang/go) .bash .sh .dash .ksh | [shellcheck](https://www.shellcheck.net/) .wasm | [wasm_validate](https://github.com/WebAssembly/wabt) • [wasm_objdump](https://github.com/WebAssembly/wabt) diff --git a/eris/tools.py b/eris/tools.py index fe21752..5d249ca 100755 --- a/eris/tools.py +++ b/eris/tools.py @@ -324,7 +324,7 @@ def python_coverage(path): "annotate", "--directory", temp_dir, path]) if returncode != 0: return Status.problem, stdout - cover_filename = path.replace("/", "_") + ",cover" + cover_filename = os.listdir(temp_dir)[0] with open(os.path.join(temp_dir, cover_filename), "r") as f: lines = f.read().splitlines(keepends=True) failed_lines = [line for line in lines if line.startswith("! ")] diff --git a/eris/tools.toml b/eris/tools.toml index a6634be..7bce0fa 100644 --- a/eris/tools.toml +++ b/eris/tools.toml @@ -14,7 +14,7 @@ tools_for_extensions = [ [["rb"], ["ruby_syntax"]], [["lua"], ["lua_syntax", "lua_check"]], [["js"], ["js_syntax"]], - [["php"], ["php7_syntax"]], + [["php"], ["php8_syntax"]], [["go"], ["go_vet", "godoc"]], [["bash", "sh", "dash", "ksh"], ["shellcheck"]], [["wasm"], ["wasm_validate", "wasm_objdump"]], @@ -224,8 +224,8 @@ tools_for_extensions = [ command = "gcc -fsyntax-only -fdiagnostics-color=always" has_color = true -[php7_syntax] - dependencies = ["php7.4-cli"] +[php8_syntax] + dependencies = ["php8.0-cli"] url = "https://en.wikipedia.org/wiki/PHP" command = "php --syntax-check" diff --git a/install-dependencies b/install-dependencies index c879c37..413db25 100755 --- a/install-dependencies +++ b/install-dependencies @@ -11,7 +11,7 @@ if [ $DIST_ID != "ubuntu" ]; then fi echo "Installing the dependencies of the eris script…" sudo apt --yes install python3-pip python3.9 util-linux python3-cwcwidth -python3.9 -m pip install pyinotify pygments docopt pillow toml +python3.9 -m pip install pyinotify pygments docopt pillow toml decorator echo echo "Installing all the tools eris may need…" ./install-tools diff --git a/make-readme.py b/make-readme.py index c928866..702641c 100755 --- a/make-readme.py +++ b/make-readme.py @@ -23,7 +23,7 @@ Eris maintains an up-to-date set of reports for every file in a codebase. ## Installation -### Ubuntu (21.04) +### Ubuntu (21.10) # git clone https://github.com/ahamilton/eris # cd eris diff --git a/tests/golden-files/input/Mcrt1.o b/tests/golden-files/input/Mcrt1.o deleted file mode 100644 index 2de812234c4f3269de36e22921a2ae4dc4927cc1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 404 zcmb<-^>JflWMqH=Mh0dE1doBC1}b3!rZpJY8Q2(nlZ#3W_3{~#v?Yoe^olczONvSo zlNj_$QY%Ur^imQ_5*hT8ih)vj`6a1(?tY=V#U+W!*$jH=d8P3wsY#{jIhlFcFdGTe z+(0EDH?cvLLfnGT2Xn6=R2?$`b>cvI4j?9^P6lco)HnuQ_Ud3!#{<)ZBnNUQ%ubNB N0}xw-7*GK72LRh*8+`x( diff --git a/tests/golden-files/input/rotatingtree.o b/tests/golden-files/input/rotatingtree.o new file mode 100644 index 0000000000000000000000000000000000000000..ab997268774b0354654f3e8d6a0906f985981ff4 GIT binary patch literal 14040 zcmcJV3v`sly})O_S2l+1ZnA{%G#gFTstF08^3)_m*g&WO5)Hn>CfOt_$u8Xoud714 zNp-tYiC$}u<$$d{LTmMMjb^sXoI2ZY)!u!c5{C9C0~uFf)(eS0)Y+L_U3KV# zX`Yfz7%Y$pxB~qL62I;r^z?5OV7)hxUI!zof%=*HGz10f6N!e@XMC-*<>V%9QfH z&Mgg_t5NlX?^1psV;b+T1uaiWwYVNN*VSBG(_GWk97vyB9!S3&NFAFQNZ(rK4W!_M zdHVhe$ptcX05a&UuFQo!F6h}sJ+6k#O4pM9w>^FT0%S?1rwpXOdiolLlmy{_Jbf1m z;dT%P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FaA5i$?#1AR_*Ti2@xO^V` zS>eAY{kIgppZGC_zd`&Xh0Ev1X@$$@!RHD;PJS%<_YpZim(cupM&TC`m+Sv;C5U#8)c(D&isHa(=!+^OI6| z5ApjIzK!@!g+EJtx57^lKd5jY&F8xcpHBP>h0A@WNcP~!2}uRWLpBlP%Li7` z9_{T7!K;Rf2)x>~se7%mhT(tyLyXa8=Ba(}t#yIi}68}923$8chbUPptK5J4-BL zWd&$l3V-NRwU_(bSJ~tF3&vNAv|s4FnLtU^#q-RO#{Vge|Gfg+Gmam(a&`Q*z*L`T zF`o`ir#Wwi5p)|zU}&GD!`mih0@PTzj8um92PkiO-y_4K>aGMf()f>5p!U#v92`HM z52)i$08@PeVy7v72?~y)>ZYMjWvD)$4zm4UG5$W#9VvhBRP@5w7Q14YKb}{p`QHZ& zw?_y99Mdm8&2Z4@cznpH6Bf@IvL)yuD*C_VWC)hS}KbIb)ove40z3i9u z3bL27tfifl4?qKN5oMXOm1OUiid4(_llV<&pik9)6WPo8m-?#xYtS*$^?Q)6Uw{np z`uX5b+ROcCq}XWUr577NpaJ9Mg#T+j!yebPy7vHLJ8@%#(rQ=PPjZ))ahZ=~{~qQ4 LK~~dlsP_K{w5~F2 literal 0 HcmV?d00001 diff --git a/tests/golden-files/results/objdump_disassemble-Mcrt1_o b/tests/golden-files/results/objdump_disassemble-Mcrt1_o deleted file mode 100644 index b172ccf..0000000 --- a/tests/golden-files/results/objdump_disassemble-Mcrt1_o +++ /dev/null @@ -1,5 +0,0 @@ - -./input/Mcrt1.o: file format elf32-i386 - -objdump: ./input/Mcrt1.o: not a dynamic object -objdump: ./input/Mcrt1.o: invalid operation diff --git a/tests/golden-files/results/objdump_disassemble-rotatingtree_o b/tests/golden-files/results/objdump_disassemble-rotatingtree_o new file mode 100644 index 0000000..21fb930 --- /dev/null +++ b/tests/golden-files/results/objdump_disassemble-rotatingtree_o @@ -0,0 +1,5 @@ + +./input/rotatingtree.o: file format elf64-x86-64 + +objdump: ./input/rotatingtree.o: not a dynamic object +objdump: ./input/rotatingtree.o: invalid operation diff --git a/tests/golden-files/results/objdump_headers-Mcrt1_o b/tests/golden-files/results/objdump_headers-Mcrt1_o deleted file mode 100644 index fcff6aa..0000000 --- a/tests/golden-files/results/objdump_headers-Mcrt1_o +++ /dev/null @@ -1,23 +0,0 @@ - -./input/Mcrt1.o: file format elf32-i386 -./input/Mcrt1.o -architecture: i386, flags 0x00000000: - -start address 0x00000000 - -Sections: -Idx Name Size VMA LMA File off Algn - 0 .text 00000000 00000000 00000000 00000034 2**0 - CONTENTS, ALLOC, LOAD, READONLY, CODE - 1 .data 00000000 00000000 00000000 00000034 2**0 - CONTENTS, ALLOC, LOAD, DATA - 2 .bss 00000000 00000000 00000000 00000034 2**0 - ALLOC - 3 .note.GNU-stack 00000000 00000000 00000000 00000034 2**0 - CONTENTS, READONLY - 4 .gnu_debuglink 0000000c 00000000 00000000 00000034 2**0 - CONTENTS, READONLY -SYMBOL TABLE: -no symbols - - diff --git a/tests/golden-files/results/objdump_headers-rotatingtree_o b/tests/golden-files/results/objdump_headers-rotatingtree_o new file mode 100644 index 0000000..cb5ab69 --- /dev/null +++ b/tests/golden-files/results/objdump_headers-rotatingtree_o @@ -0,0 +1,290 @@ + +./input/rotatingtree.o: file format elf64-x86-64 +./input/rotatingtree.o +architecture: i386:x86-64, flags 0x00000011: +HAS_RELOC, HAS_SYMS +start address 0x0000000000000000 + +Sections: +Idx Name Size VMA LMA File off Algn + 0 .text 000003b7 0000000000000000 0000000000000000 00000040 2**4 + CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE + 1 .data 00000004 0000000000000000 0000000000000000 000003f8 2**2 + CONTENTS, ALLOC, LOAD, DATA + 2 .bss 00000004 0000000000000000 0000000000000000 000003fc 2**2 + ALLOC + 3 .debug_info 00000747 0000000000000000 0000000000000000 000003fc 2**0 + CONTENTS, RELOC, READONLY, DEBUGGING, OCTETS + 4 .debug_abbrev 00000232 0000000000000000 0000000000000000 00000b43 2**0 + CONTENTS, READONLY, DEBUGGING, OCTETS + 5 .debug_loclists 00000454 0000000000000000 0000000000000000 00000d75 2**0 + CONTENTS, READONLY, DEBUGGING, OCTETS + 6 .debug_aranges 00000030 0000000000000000 0000000000000000 000011c9 2**0 + CONTENTS, RELOC, READONLY, DEBUGGING, OCTETS + 7 .debug_rnglists 0000001f 0000000000000000 0000000000000000 000011f9 2**0 + CONTENTS, READONLY, DEBUGGING, OCTETS + 8 .debug_line 00000420 0000000000000000 0000000000000000 00001218 2**0 + CONTENTS, RELOC, READONLY, DEBUGGING, OCTETS + 9 .debug_str 0000021b 0000000000000000 0000000000000000 00001638 2**0 + CONTENTS, READONLY, DEBUGGING, OCTETS + 10 .debug_line_str 000000e0 0000000000000000 0000000000000000 00001853 2**0 + CONTENTS, READONLY, DEBUGGING, OCTETS + 11 .comment 00000026 0000000000000000 0000000000000000 00001933 2**0 + CONTENTS, READONLY + 12 .note.GNU-stack 00000000 0000000000000000 0000000000000000 00001959 2**0 + CONTENTS, READONLY + 13 .note.gnu.property 00000020 0000000000000000 0000000000000000 00001960 2**3 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 14 .eh_frame 00000090 0000000000000000 0000000000000000 00001980 2**3 + CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA +SYMBOL TABLE: +0000000000000000 l df *ABS* 0000000000000000 rotatingtree.c +0000000000000000 l d .text 0000000000000000 .text +0000000000000000 l d .data 0000000000000000 .data +0000000000000000 l d .bss 0000000000000000 .bss +0000000000000000 l O .bss 0000000000000004 random_stream +0000000000000000 l O .data 0000000000000004 random_value +0000000000000000 l d .debug_info 0000000000000000 .debug_info +0000000000000000 l d .debug_abbrev 0000000000000000 .debug_abbrev +0000000000000000 l d .debug_loclists 0000000000000000 .debug_loclists +0000000000000000 l d .debug_rnglists 0000000000000000 .debug_rnglists +0000000000000000 l d .debug_line 0000000000000000 .debug_line +0000000000000000 l d .debug_str 0000000000000000 .debug_str +0000000000000000 l d .debug_line_str 0000000000000000 .debug_line_str +0000000000000000 g F .text 0000000000000033 .hidden RotatingTree_Add +0000000000000040 g F .text 000000000000014c .hidden RotatingTree_Get +0000000000000190 g F .text 0000000000000227 .hidden RotatingTree_Enum + + +RELOCATION RECORDS FOR [.text]: +OFFSET TYPE VALUE +0000000000000046 R_X86_64_PC32 .bss-0x0000000000000004 +0000000000000054 R_X86_64_PC32 .data-0x0000000000000008 +000000000000005e R_X86_64_PC32 .data-0x0000000000000004 +000000000000006f R_X86_64_PC32 .bss-0x0000000000000004 +00000000000000aa R_X86_64_PC32 .bss-0x0000000000000004 +00000000000000b6 R_X86_64_PC32 .data-0x0000000000000004 +00000000000000d0 R_X86_64_PC32 .data-0x0000000000000004 +0000000000000159 R_X86_64_PC32 .bss-0x0000000000000004 +0000000000000169 R_X86_64_PC32 .data-0x0000000000000004 +000000000000024a R_X86_64_PLT32 RotatingTree_Enum-0x0000000000000004 + + +RELOCATION RECORDS FOR [.debug_info]: +OFFSET TYPE VALUE +0000000000000008 R_X86_64_32 .debug_abbrev +000000000000000d R_X86_64_32 .debug_str +0000000000000012 R_X86_64_32 .debug_line_str +0000000000000016 R_X86_64_32 .debug_line_str+0x0000000000000033 +000000000000001a R_X86_64_64 .text +000000000000002a R_X86_64_32 .debug_line +0000000000000031 R_X86_64_32 .debug_str+0x000000000000016f +000000000000003f R_X86_64_32 .debug_str+0x00000000000001f5 +0000000000000046 R_X86_64_32 .debug_str+0x00000000000001c0 +000000000000004d R_X86_64_32 .debug_str+0x0000000000000122 +0000000000000054 R_X86_64_32 .debug_str+0x0000000000000143 +000000000000005b R_X86_64_32 .debug_str+0x00000000000001a6 +0000000000000062 R_X86_64_32 .debug_str+0x00000000000001fe +0000000000000069 R_X86_64_32 .debug_str+0x00000000000001e6 +0000000000000072 R_X86_64_32 .debug_str+0x00000000000001ce +0000000000000079 R_X86_64_32 .debug_str+0x000000000000010b +000000000000007e R_X86_64_32 .debug_str+0x0000000000000191 +0000000000000089 R_X86_64_32 .debug_str+0x0000000000000181 +00000000000000a3 R_X86_64_32 .debug_str+0x00000000000000de +00000000000000ae R_X86_64_32 .debug_str+0x000000000000013d +00000000000000ba R_X86_64_32 .debug_str+0x00000000000000e3 +00000000000000e3 R_X86_64_32 .debug_str+0x0000000000000130 +00000000000000ee R_X86_64_64 .data +00000000000000f7 R_X86_64_32 .debug_str+0x00000000000001d8 +0000000000000102 R_X86_64_64 .bss +000000000000010b R_X86_64_32 .debug_str+0x0000000000000156 +000000000000011c R_X86_64_32 .debug_str+0x00000000000001a1 +0000000000000127 R_X86_64_32 .debug_str+0x00000000000000f9 +000000000000013e R_X86_64_32 .debug_str+0x00000000000001b9 +0000000000000149 R_X86_64_32 .debug_str+0x00000000000001f0 +0000000000000155 R_X86_64_32 .debug_str+0x00000000000000cd +0000000000000160 R_X86_64_64 .text+0x0000000000000040 +0000000000000177 R_X86_64_32 .debug_str+0x00000000000001a1 +0000000000000180 R_X86_64_32 .debug_loclists+0x0000000000000014 +0000000000000184 R_X86_64_32 .debug_loclists+0x000000000000000c +0000000000000197 R_X86_64_32 .debug_rnglists+0x0000000000000016 +00000000000001a0 R_X86_64_32 .debug_str+0x00000000000001f0 +00000000000001aa R_X86_64_32 .debug_loclists+0x000000000000003c +00000000000001ae R_X86_64_32 .debug_loclists+0x0000000000000036 +00000000000001b4 R_X86_64_64 .text+0x00000000000000ba +00000000000001c9 R_X86_64_32 .debug_str+0x00000000000001b3 +00000000000001d3 R_X86_64_32 .debug_loclists+0x0000000000000061 +00000000000001d7 R_X86_64_32 .debug_loclists+0x0000000000000053 +00000000000001dc R_X86_64_32 .debug_str+0x00000000000001f0 +00000000000001e6 R_X86_64_32 .debug_loclists+0x00000000000000ab +00000000000001ea R_X86_64_32 .debug_loclists+0x0000000000000097 +00000000000001ef R_X86_64_32 .debug_str+0x00000000000000c8 +00000000000001f9 R_X86_64_32 .debug_loclists+0x0000000000000100 +00000000000001fd R_X86_64_32 .debug_loclists+0x00000000000000f8 +0000000000000202 R_X86_64_32 .debug_str+0x0000000000000168 +000000000000020c R_X86_64_32 .debug_loclists+0x0000000000000125 +0000000000000210 R_X86_64_32 .debug_loclists+0x000000000000011d +0000000000000219 R_X86_64_64 .text+0x000000000000010b +0000000000000222 R_X86_64_64 .text+0x000000000000010b +000000000000023a R_X86_64_32 .debug_loclists+0x0000000000000154 +000000000000023e R_X86_64_32 .debug_loclists+0x0000000000000152 +0000000000000247 R_X86_64_32 .debug_loclists+0x000000000000015f +000000000000024b R_X86_64_32 .debug_loclists+0x000000000000015d +0000000000000256 R_X86_64_64 .text+0x0000000000000044 +000000000000025f R_X86_64_32 .debug_rnglists+0x000000000000000c +000000000000026b R_X86_64_32 .debug_loclists+0x0000000000000169 +000000000000026f R_X86_64_32 .debug_loclists+0x0000000000000167 +0000000000000274 R_X86_64_32 .debug_rnglists+0x000000000000000c +000000000000027d R_X86_64_32 .debug_loclists+0x0000000000000174 +0000000000000281 R_X86_64_32 .debug_loclists+0x0000000000000170 +000000000000028e R_X86_64_32 .debug_str+0x000000000000020a +0000000000000295 R_X86_64_64 .text +00000000000002ac R_X86_64_32 .debug_str+0x00000000000001a1 +00000000000002b5 R_X86_64_32 .debug_loclists+0x0000000000000187 +00000000000002b9 R_X86_64_32 .debug_loclists+0x0000000000000183 +00000000000002be R_X86_64_32 .debug_str+0x00000000000001f0 +00000000000002cd R_X86_64_32 .debug_str+0x0000000000000100 +00000000000002de R_X86_64_32 .debug_str+0x00000000000001d3 +00000000000002e9 R_X86_64_32 .debug_str+0x00000000000001b9 +00000000000002f9 R_X86_64_64 .text+0x0000000000000190 +0000000000000310 R_X86_64_32 .debug_loclists+0x000000000000019b +0000000000000314 R_X86_64_32 .debug_loclists+0x0000000000000195 +000000000000031d R_X86_64_32 .debug_loclists+0x00000000000001b9 +0000000000000321 R_X86_64_32 .debug_loclists+0x00000000000001b3 +000000000000032a R_X86_64_32 .debug_loclists+0x00000000000001d8 +000000000000032e R_X86_64_32 .debug_loclists+0x00000000000001d2 +0000000000000337 R_X86_64_32 .debug_loclists+0x00000000000001f5 +000000000000033b R_X86_64_32 .debug_loclists+0x00000000000001f1 +0000000000000344 R_X86_64_32 .debug_loclists+0x0000000000000207 +0000000000000348 R_X86_64_32 .debug_loclists+0x0000000000000205 +0000000000000351 R_X86_64_64 .text+0x00000000000001c7 +000000000000035a R_X86_64_64 .text+0x00000000000001c7 +0000000000000373 R_X86_64_32 .debug_loclists+0x0000000000000211 +0000000000000377 R_X86_64_32 .debug_loclists+0x000000000000020f +0000000000000380 R_X86_64_32 .debug_loclists+0x000000000000021b +0000000000000384 R_X86_64_32 .debug_loclists+0x0000000000000219 +000000000000038d R_X86_64_32 .debug_loclists+0x0000000000000229 +0000000000000391 R_X86_64_32 .debug_loclists+0x0000000000000223 +000000000000039a R_X86_64_32 .debug_loclists+0x0000000000000245 +000000000000039e R_X86_64_32 .debug_loclists+0x0000000000000241 +00000000000003a7 R_X86_64_32 .debug_loclists+0x0000000000000257 +00000000000003ab R_X86_64_32 .debug_loclists+0x0000000000000255 +00000000000003b4 R_X86_64_64 .text+0x00000000000001dc +00000000000003bd R_X86_64_64 .text+0x00000000000001dc +00000000000003d6 R_X86_64_32 .debug_loclists+0x0000000000000261 +00000000000003da R_X86_64_32 .debug_loclists+0x000000000000025f +00000000000003e3 R_X86_64_32 .debug_loclists+0x000000000000026b +00000000000003e7 R_X86_64_32 .debug_loclists+0x0000000000000269 +00000000000003f0 R_X86_64_32 .debug_loclists+0x0000000000000277 +00000000000003f4 R_X86_64_32 .debug_loclists+0x0000000000000273 +00000000000003fd R_X86_64_32 .debug_loclists+0x000000000000028a +0000000000000401 R_X86_64_32 .debug_loclists+0x0000000000000286 +000000000000040a R_X86_64_32 .debug_loclists+0x000000000000029c +000000000000040e R_X86_64_32 .debug_loclists+0x000000000000029a +0000000000000417 R_X86_64_64 .text+0x00000000000001ea +0000000000000420 R_X86_64_64 .text+0x00000000000001ea +0000000000000439 R_X86_64_32 .debug_loclists+0x00000000000002a6 +000000000000043d R_X86_64_32 .debug_loclists+0x00000000000002a4 +0000000000000446 R_X86_64_32 .debug_loclists+0x00000000000002b0 +000000000000044a R_X86_64_32 .debug_loclists+0x00000000000002ae +0000000000000453 R_X86_64_32 .debug_loclists+0x00000000000002bc +0000000000000457 R_X86_64_32 .debug_loclists+0x00000000000002b8 +0000000000000460 R_X86_64_32 .debug_loclists+0x00000000000002cf +0000000000000464 R_X86_64_32 .debug_loclists+0x00000000000002cb +000000000000046d R_X86_64_32 .debug_loclists+0x00000000000002e1 +0000000000000471 R_X86_64_32 .debug_loclists+0x00000000000002df +000000000000047a R_X86_64_64 .text+0x00000000000001f7 +0000000000000483 R_X86_64_64 .text+0x00000000000001f7 +000000000000049c R_X86_64_32 .debug_loclists+0x00000000000002eb +00000000000004a0 R_X86_64_32 .debug_loclists+0x00000000000002e9 +00000000000004a9 R_X86_64_32 .debug_loclists+0x00000000000002f5 +00000000000004ad R_X86_64_32 .debug_loclists+0x00000000000002f3 +00000000000004b6 R_X86_64_32 .debug_loclists+0x0000000000000301 +00000000000004ba R_X86_64_32 .debug_loclists+0x00000000000002fd +00000000000004c3 R_X86_64_32 .debug_loclists+0x0000000000000314 +00000000000004c7 R_X86_64_32 .debug_loclists+0x0000000000000310 +00000000000004d0 R_X86_64_32 .debug_loclists+0x0000000000000326 +00000000000004d4 R_X86_64_32 .debug_loclists+0x0000000000000324 +00000000000004dd R_X86_64_64 .text+0x0000000000000204 +00000000000004e6 R_X86_64_64 .text+0x0000000000000204 +00000000000004ff R_X86_64_32 .debug_loclists+0x0000000000000330 +0000000000000503 R_X86_64_32 .debug_loclists+0x000000000000032e +000000000000050c R_X86_64_32 .debug_loclists+0x000000000000033a +0000000000000510 R_X86_64_32 .debug_loclists+0x0000000000000338 +0000000000000519 R_X86_64_32 .debug_loclists+0x0000000000000344 +000000000000051d R_X86_64_32 .debug_loclists+0x0000000000000342 +0000000000000526 R_X86_64_32 .debug_loclists+0x0000000000000350 +000000000000052a R_X86_64_32 .debug_loclists+0x000000000000034c +0000000000000533 R_X86_64_32 .debug_loclists+0x0000000000000362 +0000000000000537 R_X86_64_32 .debug_loclists+0x0000000000000360 +0000000000000540 R_X86_64_64 .text+0x0000000000000211 +0000000000000549 R_X86_64_64 .text+0x0000000000000211 +0000000000000562 R_X86_64_32 .debug_loclists+0x000000000000036e +0000000000000566 R_X86_64_32 .debug_loclists+0x000000000000036c +000000000000056f R_X86_64_32 .debug_loclists+0x0000000000000378 +0000000000000573 R_X86_64_32 .debug_loclists+0x0000000000000376 +000000000000057c R_X86_64_32 .debug_loclists+0x0000000000000384 +0000000000000580 R_X86_64_32 .debug_loclists+0x0000000000000380 +0000000000000589 R_X86_64_32 .debug_loclists+0x0000000000000397 +000000000000058d R_X86_64_32 .debug_loclists+0x0000000000000393 +0000000000000596 R_X86_64_32 .debug_loclists+0x00000000000003a9 +000000000000059a R_X86_64_32 .debug_loclists+0x00000000000003a7 +00000000000005a3 R_X86_64_64 .text+0x000000000000021e +00000000000005ac R_X86_64_64 .text+0x000000000000021e +00000000000005c5 R_X86_64_32 .debug_loclists+0x00000000000003b5 +00000000000005c9 R_X86_64_32 .debug_loclists+0x00000000000003b3 +00000000000005d2 R_X86_64_32 .debug_loclists+0x00000000000003bf +00000000000005d6 R_X86_64_32 .debug_loclists+0x00000000000003bd +00000000000005df R_X86_64_32 .debug_loclists+0x00000000000003cb +00000000000005e3 R_X86_64_32 .debug_loclists+0x00000000000003c7 +00000000000005ec R_X86_64_32 .debug_loclists+0x00000000000003de +00000000000005f0 R_X86_64_32 .debug_loclists+0x00000000000003da +00000000000005f9 R_X86_64_32 .debug_loclists+0x00000000000003f0 +00000000000005fd R_X86_64_32 .debug_loclists+0x00000000000003ee +0000000000000606 R_X86_64_64 .text+0x000000000000022b +000000000000060f R_X86_64_64 .text+0x000000000000022b +0000000000000628 R_X86_64_32 .debug_loclists+0x00000000000003fc +000000000000062c R_X86_64_32 .debug_loclists+0x00000000000003fa +0000000000000635 R_X86_64_32 .debug_loclists+0x0000000000000406 +0000000000000639 R_X86_64_32 .debug_loclists+0x0000000000000404 +0000000000000642 R_X86_64_32 .debug_loclists+0x0000000000000414 +0000000000000646 R_X86_64_32 .debug_loclists+0x000000000000040e +000000000000064f R_X86_64_32 .debug_loclists+0x0000000000000430 +0000000000000653 R_X86_64_32 .debug_loclists+0x000000000000042c +000000000000065c R_X86_64_32 .debug_loclists+0x0000000000000443 +0000000000000660 R_X86_64_32 .debug_loclists+0x000000000000043f +0000000000000665 R_X86_64_64 .text+0x000000000000024e +0000000000000683 R_X86_64_64 .text+0x000000000000026c +0000000000000697 R_X86_64_64 .text+0x000000000000029e +00000000000006a8 R_X86_64_64 .text+0x00000000000002ca +00000000000006b9 R_X86_64_64 .text+0x00000000000002f1 +00000000000006d0 R_X86_64_64 .text+0x0000000000000313 +00000000000006e7 R_X86_64_64 .text+0x0000000000000333 +00000000000006fe R_X86_64_64 .text+0x0000000000000350 +0000000000000715 R_X86_64_64 .text+0x000000000000036e +000000000000072e R_X86_64_64 .text+0x0000000000000391 + + +RELOCATION RECORDS FOR [.debug_aranges]: +OFFSET TYPE VALUE +0000000000000006 R_X86_64_32 .debug_info +0000000000000010 R_X86_64_64 .text + + +RELOCATION RECORDS FOR [.debug_line]: +OFFSET TYPE VALUE +0000000000000022 R_X86_64_32 .debug_line_str+0x000000000000004f +0000000000000026 R_X86_64_32 .debug_line_str+0x000000000000006b +0000000000000030 R_X86_64_32 .debug_line_str+0x000000000000008f +0000000000000035 R_X86_64_32 .debug_line_str+0x00000000000000c2 +000000000000003a R_X86_64_32 .debug_line_str+0x00000000000000d1 +0000000000000044 R_X86_64_64 .text + + +RELOCATION RECORDS FOR [.eh_frame]: +OFFSET TYPE VALUE +0000000000000020 R_X86_64_PC32 .text +0000000000000034 R_X86_64_PC32 .text+0x0000000000000040 +0000000000000048 R_X86_64_PC32 .text+0x0000000000000190 + + diff --git a/tests/golden-files/results/php7_syntax-root_php b/tests/golden-files/results/php8_syntax-root_php similarity index 100% rename from tests/golden-files/results/php7_syntax-root_php rename to tests/golden-files/results/php8_syntax-root_php diff --git a/tests/golden-files/results/readelf-Mcrt1_o b/tests/golden-files/results/readelf-Mcrt1_o deleted file mode 100644 index 0d08efa..0000000 --- a/tests/golden-files/results/readelf-Mcrt1_o +++ /dev/null @@ -1,47 +0,0 @@ -ELF Header: - Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 - Class: ELF32 - Data: 2's complement, little endian - Version: 1 (current) - OS/ABI: UNIX - System V - ABI Version: 0 - Type: REL (Relocatable file) - Machine: Intel 80386 - Version: 0x1 - Entry point address: 0x0 - Start of program headers: 0 (bytes into file) - Start of section headers: 124 (bytes into file) - Flags: 0x0 - Size of this header: 52 (bytes) - Size of program headers: 0 (bytes) - Number of program headers: 0 - Size of section headers: 40 (bytes) - Number of section headers: 7 - Section header string table index: 6 - -Section Headers: - [Nr] Name Type Addr Off Size ES Flg Lk Inf Al - [ 0] NULL 00000000 000000 000000 00 0 0 0 - [ 1] .text PROGBITS 00000000 000034 000000 00 AX 0 0 1 - [ 2] .data PROGBITS 00000000 000034 000000 00 WA 0 0 1 - [ 3] .bss NOBITS 00000000 000034 000000 00 WA 0 0 1 - [ 4] .note.GNU-stack PROGBITS 00000000 000034 000000 00 0 0 1 - [ 5] .gnu_debuglink PROGBITS 00000000 000034 00000c 00 0 0 1 - [ 6] .shstrtab STRTAB 00000000 000040 00003b 00 0 0 1 -Key to Flags: - W (write), A (alloc), X (execute), M (merge), S (strings), I (info), - L (link order), O (extra OS processing required), G (group), T (TLS), - C (compressed), x (unknown), o (OS specific), E (exclude), - p (processor specific) - -There are no section groups in this file. - -There are no program headers in this file. - -There is no dynamic section in this file. - -There are no relocations in this file. - -The decoding of unwind sections for machine type Intel 80386 is not currently supported. - -No version information found in this file. diff --git a/tests/golden-files/results/readelf-rotatingtree_o b/tests/golden-files/results/readelf-rotatingtree_o new file mode 100644 index 0000000..0f03f47 --- /dev/null +++ b/tests/golden-files/results/readelf-rotatingtree_o @@ -0,0 +1,338 @@ +ELF Header: + Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 + Class: ELF64 + Data: 2's complement, little endian + Version: 1 (current) + OS/ABI: UNIX - System V + ABI Version: 0 + Type: REL (Relocatable file) + Machine: Advanced Micro Devices X86-64 + Version: 0x1 + Entry point address: 0x0 + Start of program headers: 0 (bytes into file) + Start of section headers: 12504 (bytes into file) + Flags: 0x0 + Size of this header: 64 (bytes) + Size of program headers: 0 (bytes) + Number of program headers: 0 + Size of section headers: 64 (bytes) + Number of section headers: 24 + Section header string table index: 23 + +Section Headers: + [Nr] Name Type Address Offset + Size EntSize Flags Link Info Align + [ 0] NULL 0000000000000000 00000000 + 0000000000000000 0000000000000000 0 0 0 + [ 1] .text PROGBITS 0000000000000000 00000040 + 00000000000003b7 0000000000000000 AX 0 0 16 + [ 2] .rela.text RELA 0000000000000000 00001c08 + 00000000000000f0 0000000000000018 I 21 1 8 + [ 3] .data PROGBITS 0000000000000000 000003f8 + 0000000000000004 0000000000000000 WA 0 0 4 + [ 4] .bss NOBITS 0000000000000000 000003fc + 0000000000000004 0000000000000000 WA 0 0 4 + [ 5] .debug_info PROGBITS 0000000000000000 000003fc + 0000000000000747 0000000000000000 0 0 1 + [ 6] .rela.debug_info RELA 0000000000000000 00001cf8 + 00000000000011e8 0000000000000018 I 21 5 8 + [ 7] .debug_abbrev PROGBITS 0000000000000000 00000b43 + 0000000000000232 0000000000000000 0 0 1 + [ 8] .debug_loclists PROGBITS 0000000000000000 00000d75 + 0000000000000454 0000000000000000 0 0 1 + [ 9] .debug_aranges PROGBITS 0000000000000000 000011c9 + 0000000000000030 0000000000000000 0 0 1 + [10] .rela.debug_[...] RELA 0000000000000000 00002ee0 + 0000000000000030 0000000000000018 I 21 9 8 + [11] .debug_rnglists PROGBITS 0000000000000000 000011f9 + 000000000000001f 0000000000000000 0 0 1 + [12] .debug_line PROGBITS 0000000000000000 00001218 + 0000000000000420 0000000000000000 0 0 1 + [13] .rela.debug_line RELA 0000000000000000 00002f10 + 0000000000000090 0000000000000018 I 21 12 8 + [14] .debug_str PROGBITS 0000000000000000 00001638 + 000000000000021b 0000000000000001 MS 0 0 1 + [15] .debug_line_str PROGBITS 0000000000000000 00001853 + 00000000000000e0 0000000000000001 MS 0 0 1 + [16] .comment PROGBITS 0000000000000000 00001933 + 0000000000000026 0000000000000001 MS 0 0 1 + [17] .note.GNU-stack PROGBITS 0000000000000000 00001959 + 0000000000000000 0000000000000000 0 0 1 + [18] .note.gnu.pr[...] NOTE 0000000000000000 00001960 + 0000000000000020 0000000000000000 A 0 0 8 + [19] .eh_frame PROGBITS 0000000000000000 00001980 + 0000000000000090 0000000000000000 A 0 0 8 + [20] .rela.eh_frame RELA 0000000000000000 00002fa0 + 0000000000000048 0000000000000018 I 21 19 8 + [21] .symtab SYMTAB 0000000000000000 00001a10 + 0000000000000198 0000000000000018 22 14 8 + [22] .strtab STRTAB 0000000000000000 00001ba8 + 000000000000005f 0000000000000000 0 0 1 + [23] .shstrtab STRTAB 0000000000000000 00002fe8 + 00000000000000eb 0000000000000000 0 0 1 +Key to Flags: + W (write), A (alloc), X (execute), M (merge), S (strings), I (info), + L (link order), O (extra OS processing required), G (group), T (TLS), + C (compressed), x (unknown), o (OS specific), E (exclude), + D (mbind), l (large), p (processor specific) + +There are no section groups in this file. + +There are no program headers in this file. + +There is no dynamic section in this file. + +Relocation section '.rela.text' at offset 0x1c08 contains 10 entries: + Offset Info Type Sym. Value Sym. Name + Addend +000000000046 000400000002 R_X86_64_PC32 0000000000000000 .bss - 4 +000000000054 000300000002 R_X86_64_PC32 0000000000000000 .data - 8 +00000000005e 000300000002 R_X86_64_PC32 0000000000000000 .data - 4 +00000000006f 000400000002 R_X86_64_PC32 0000000000000000 .bss - 4 +0000000000aa 000400000002 R_X86_64_PC32 0000000000000000 .bss - 4 +0000000000b6 000300000002 R_X86_64_PC32 0000000000000000 .data - 4 +0000000000d0 000300000002 R_X86_64_PC32 0000000000000000 .data - 4 +000000000159 000400000002 R_X86_64_PC32 0000000000000000 .bss - 4 +000000000169 000300000002 R_X86_64_PC32 0000000000000000 .data - 4 +00000000024a 001000000004 R_X86_64_PLT32 0000000000000190 RotatingTree_Enum - 4 + +Relocation section '.rela.debug_info' at offset 0x1cf8 contains 191 entries: + Offset Info Type Sym. Value Sym. Name + Addend +000000000008 00080000000a R_X86_64_32 0000000000000000 .debug_abbrev + 0 +00000000000d 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 0 +000000000012 000d0000000a R_X86_64_32 0000000000000000 .debug_line_str + 0 +000000000016 000d0000000a R_X86_64_32 0000000000000000 .debug_line_str + 33 +00000000001a 000200000001 R_X86_64_64 0000000000000000 .text + 0 +00000000002a 000b0000000a R_X86_64_32 0000000000000000 .debug_line + 0 +000000000031 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 16f +00000000003f 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1f5 +000000000046 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1c0 +00000000004d 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 122 +000000000054 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 143 +00000000005b 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1a6 +000000000062 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1fe +000000000069 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1e6 +000000000072 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1ce +000000000079 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 10b +00000000007e 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 191 +000000000089 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 181 +0000000000a3 000c0000000a R_X86_64_32 0000000000000000 .debug_str + de +0000000000ae 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 13d +0000000000ba 000c0000000a R_X86_64_32 0000000000000000 .debug_str + e3 +0000000000e3 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 130 +0000000000ee 000300000001 R_X86_64_64 0000000000000000 .data + 0 +0000000000f7 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1d8 +000000000102 000400000001 R_X86_64_64 0000000000000000 .bss + 0 +00000000010b 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 156 +00000000011c 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1a1 +000000000127 000c0000000a R_X86_64_32 0000000000000000 .debug_str + f9 +00000000013e 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1b9 +000000000149 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1f0 +000000000155 000c0000000a R_X86_64_32 0000000000000000 .debug_str + cd +000000000160 000200000001 R_X86_64_64 0000000000000000 .text + 40 +000000000177 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1a1 +000000000180 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 14 +000000000184 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + c +000000000197 000a0000000a R_X86_64_32 0000000000000000 .debug_rnglists + 16 +0000000001a0 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1f0 +0000000001aa 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3c +0000000001ae 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 36 +0000000001b4 000200000001 R_X86_64_64 0000000000000000 .text + ba +0000000001c9 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1b3 +0000000001d3 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 61 +0000000001d7 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 53 +0000000001dc 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1f0 +0000000001e6 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + ab +0000000001ea 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 97 +0000000001ef 000c0000000a R_X86_64_32 0000000000000000 .debug_str + c8 +0000000001f9 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 100 +0000000001fd 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + f8 +000000000202 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 168 +00000000020c 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 125 +000000000210 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 11d +000000000219 000200000001 R_X86_64_64 0000000000000000 .text + 10b +000000000222 000200000001 R_X86_64_64 0000000000000000 .text + 10b +00000000023a 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 154 +00000000023e 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 152 +000000000247 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 15f +00000000024b 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 15d +000000000256 000200000001 R_X86_64_64 0000000000000000 .text + 44 +00000000025f 000a0000000a R_X86_64_32 0000000000000000 .debug_rnglists + c +00000000026b 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 169 +00000000026f 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 167 +000000000274 000a0000000a R_X86_64_32 0000000000000000 .debug_rnglists + c +00000000027d 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 174 +000000000281 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 170 +00000000028e 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 20a +000000000295 000200000001 R_X86_64_64 0000000000000000 .text + 0 +0000000002ac 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1a1 +0000000002b5 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 187 +0000000002b9 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 183 +0000000002be 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1f0 +0000000002cd 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 100 +0000000002de 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1d3 +0000000002e9 000c0000000a R_X86_64_32 0000000000000000 .debug_str + 1b9 +0000000002f9 000200000001 R_X86_64_64 0000000000000000 .text + 190 +000000000310 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 19b +000000000314 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 195 +00000000031d 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 1b9 +000000000321 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 1b3 +00000000032a 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 1d8 +00000000032e 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 1d2 +000000000337 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 1f5 +00000000033b 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 1f1 +000000000344 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 207 +000000000348 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 205 +000000000351 000200000001 R_X86_64_64 0000000000000000 .text + 1c7 +00000000035a 000200000001 R_X86_64_64 0000000000000000 .text + 1c7 +000000000373 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 211 +000000000377 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 20f +000000000380 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 21b +000000000384 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 219 +00000000038d 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 229 +000000000391 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 223 +00000000039a 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 245 +00000000039e 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 241 +0000000003a7 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 257 +0000000003ab 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 255 +0000000003b4 000200000001 R_X86_64_64 0000000000000000 .text + 1dc +0000000003bd 000200000001 R_X86_64_64 0000000000000000 .text + 1dc +0000000003d6 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 261 +0000000003da 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 25f +0000000003e3 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 26b +0000000003e7 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 269 +0000000003f0 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 277 +0000000003f4 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 273 +0000000003fd 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 28a +000000000401 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 286 +00000000040a 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 29c +00000000040e 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 29a +000000000417 000200000001 R_X86_64_64 0000000000000000 .text + 1ea +000000000420 000200000001 R_X86_64_64 0000000000000000 .text + 1ea +000000000439 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2a6 +00000000043d 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2a4 +000000000446 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2b0 +00000000044a 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2ae +000000000453 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2bc +000000000457 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2b8 +000000000460 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2cf +000000000464 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2cb +00000000046d 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2e1 +000000000471 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2df +00000000047a 000200000001 R_X86_64_64 0000000000000000 .text + 1f7 +000000000483 000200000001 R_X86_64_64 0000000000000000 .text + 1f7 +00000000049c 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2eb +0000000004a0 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2e9 +0000000004a9 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2f5 +0000000004ad 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2f3 +0000000004b6 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 301 +0000000004ba 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 2fd +0000000004c3 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 314 +0000000004c7 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 310 +0000000004d0 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 326 +0000000004d4 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 324 +0000000004dd 000200000001 R_X86_64_64 0000000000000000 .text + 204 +0000000004e6 000200000001 R_X86_64_64 0000000000000000 .text + 204 +0000000004ff 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 330 +000000000503 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 32e +00000000050c 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 33a +000000000510 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 338 +000000000519 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 344 +00000000051d 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 342 +000000000526 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 350 +00000000052a 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 34c +000000000533 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 362 +000000000537 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 360 +000000000540 000200000001 R_X86_64_64 0000000000000000 .text + 211 +000000000549 000200000001 R_X86_64_64 0000000000000000 .text + 211 +000000000562 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 36e +000000000566 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 36c +00000000056f 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 378 +000000000573 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 376 +00000000057c 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 384 +000000000580 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 380 +000000000589 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 397 +00000000058d 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 393 +000000000596 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3a9 +00000000059a 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3a7 +0000000005a3 000200000001 R_X86_64_64 0000000000000000 .text + 21e +0000000005ac 000200000001 R_X86_64_64 0000000000000000 .text + 21e +0000000005c5 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3b5 +0000000005c9 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3b3 +0000000005d2 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3bf +0000000005d6 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3bd +0000000005df 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3cb +0000000005e3 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3c7 +0000000005ec 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3de +0000000005f0 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3da +0000000005f9 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3f0 +0000000005fd 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3ee +000000000606 000200000001 R_X86_64_64 0000000000000000 .text + 22b +00000000060f 000200000001 R_X86_64_64 0000000000000000 .text + 22b +000000000628 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3fc +00000000062c 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 3fa +000000000635 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 406 +000000000639 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 404 +000000000642 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 414 +000000000646 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 40e +00000000064f 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 430 +000000000653 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 42c +00000000065c 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 443 +000000000660 00090000000a R_X86_64_32 0000000000000000 .debug_loclists + 43f +000000000665 000200000001 R_X86_64_64 0000000000000000 .text + 24e +000000000683 000200000001 R_X86_64_64 0000000000000000 .text + 26c +000000000697 000200000001 R_X86_64_64 0000000000000000 .text + 29e +0000000006a8 000200000001 R_X86_64_64 0000000000000000 .text + 2ca +0000000006b9 000200000001 R_X86_64_64 0000000000000000 .text + 2f1 +0000000006d0 000200000001 R_X86_64_64 0000000000000000 .text + 313 +0000000006e7 000200000001 R_X86_64_64 0000000000000000 .text + 333 +0000000006fe 000200000001 R_X86_64_64 0000000000000000 .text + 350 +000000000715 000200000001 R_X86_64_64 0000000000000000 .text + 36e +00000000072e 000200000001 R_X86_64_64 0000000000000000 .text + 391 + +Relocation section '.rela.debug_aranges' at offset 0x2ee0 contains 2 entries: + Offset Info Type Sym. Value Sym. Name + Addend +000000000006 00070000000a R_X86_64_32 0000000000000000 .debug_info + 0 +000000000010 000200000001 R_X86_64_64 0000000000000000 .text + 0 + +Relocation section '.rela.debug_line' at offset 0x2f10 contains 6 entries: + Offset Info Type Sym. Value Sym. Name + Addend +000000000022 000d0000000a R_X86_64_32 0000000000000000 .debug_line_str + 4f +000000000026 000d0000000a R_X86_64_32 0000000000000000 .debug_line_str + 6b +000000000030 000d0000000a R_X86_64_32 0000000000000000 .debug_line_str + 8f +000000000035 000d0000000a R_X86_64_32 0000000000000000 .debug_line_str + c2 +00000000003a 000d0000000a R_X86_64_32 0000000000000000 .debug_line_str + d1 +000000000044 000200000001 R_X86_64_64 0000000000000000 .text + 0 + +Relocation section '.rela.eh_frame' at offset 0x2fa0 contains 3 entries: + Offset Info Type Sym. Value Sym. Name + Addend +000000000020 000200000002 R_X86_64_PC32 0000000000000000 .text + 0 +000000000034 000200000002 R_X86_64_PC32 0000000000000000 .text + 40 +000000000048 000200000002 R_X86_64_PC32 0000000000000000 .text + 190 +No processor specific unwind information to decode + +Symbol table '.symtab' contains 17 entries: + Num: Value Size Type Bind Vis Ndx Name + 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND + 1: 0000000000000000 0 FILE LOCAL DEFAULT ABS rotatingtree.c + 2: 0000000000000000 0 SECTION LOCAL DEFAULT 1 .text + 3: 0000000000000000 0 SECTION LOCAL DEFAULT 3 .data + 4: 0000000000000000 0 SECTION LOCAL DEFAULT 4 .bss + 5: 0000000000000000 4 OBJECT LOCAL DEFAULT 4 random_stream + 6: 0000000000000000 4 OBJECT LOCAL DEFAULT 3 random_value + 7: 0000000000000000 0 SECTION LOCAL DEFAULT 5 .debug_info + 8: 0000000000000000 0 SECTION LOCAL DEFAULT 7 .debug_abbrev + 9: 0000000000000000 0 SECTION LOCAL DEFAULT 8 .debug_loclists + 10: 0000000000000000 0 SECTION LOCAL DEFAULT 11 .debug_rnglists + 11: 0000000000000000 0 SECTION LOCAL DEFAULT 12 .debug_line + 12: 0000000000000000 0 SECTION LOCAL DEFAULT 14 .debug_str + 13: 0000000000000000 0 SECTION LOCAL DEFAULT 15 .debug_line_str + 14: 0000000000000000 51 FUNC GLOBAL HIDDEN 1 RotatingTree_Add + 15: 0000000000000040 332 FUNC GLOBAL HIDDEN 1 RotatingTree_Get + 16: 0000000000000190 551 FUNC GLOBAL HIDDEN 1 RotatingTree_Enum + +No version information found in this file. + +Displaying notes found in: .note.gnu.property + Owner Data size Description + GNU 0x00000010 NT_GNU_PROPERTY_TYPE_0 + Properties: x86 feature: IBT, SHSTK diff --git a/tests/tools_test.py b/tests/tools_test.py index fa1198a..6712528 100755 --- a/tests/tools_test.py +++ b/tests/tools_test.py @@ -145,14 +145,14 @@ class ToolsTestCase(unittest.TestCase): def test_objdump_headers(self): self._test_tool(tools.objdump_headers, - [("Mcrt1.o", tools.Status.ok)]) + [("rotatingtree.o", tools.Status.ok)]) def test_objdump_disassemble(self): self._test_tool(tools.objdump_disassemble, - [("Mcrt1.o", tools.Status.problem)]) + [("rotatingtree.o", tools.Status.problem)]) def test_readelf(self): - self._test_tool(tools.readelf, [("Mcrt1.o", tools.Status.ok)]) + self._test_tool(tools.readelf, [("rotatingtree.o", tools.Status.ok)]) def test_zipinfo(self): self._test_tool(tools.zipinfo, [("hi.zip", tools.Status.ok)]) @@ -180,8 +180,8 @@ class ToolsTestCase(unittest.TestCase): def test_cpp_syntax_gcc(self): self._test_tool(tools.cpp_syntax_gcc, [("hello.cpp", tools.Status.ok)]) - def test_php7_syntax(self): - self._test_tool(tools.php7_syntax, [("root.php", tools.Status.ok)]) + def test_php8_syntax(self): + self._test_tool(tools.php8_syntax, [("root.php", tools.Status.ok)]) def test_pil(self): for extension in ["png", "jpg", "gif", "bmp", "ppm", "tiff", "tga"]: