llvm-project/llvm/test/tools
Jake Ehrlich 6452b11fd8 [llvm-objcopy] Fix handling of zero-size segments in llvm-objcopy
Some ELF files produced by lld may have zero-size segment placeholders as shown
below. Since GNU_STACK Offset is 0, the current code makes it the lowest used
offset, and relocates all the segments over the ELF header. The resulting
binary is total garbage.

This change fixes how llvm-objcopy handles PT_PHDR properlly by treating ELF
headers and the program header table as segments to allow the layout algorithm
decide where those should go.

Author: vit9696

Differential Revision: https://reviews.llvm.org/D42872

llvm-svn: 325189
2018-02-14 23:31:33 +00:00
..
dsymutil Change "UNSUPPORTED: windows" to be "UNSUPPORTED: system-windows" so that test is actually skipped on Windows. 2018-02-08 18:45:16 +00:00
gold [gold] Fix error report in thinlto_emit_linked_objects.ll test 2018-02-14 00:00:43 +00:00
llvm-ar [llvm-ar] Support an options string that start with a dash 2017-11-03 20:09:10 +00:00
llvm-cfi-verify/X86 [cfi-verify] Add blame context printing, and improved print format. 2018-02-01 23:45:18 +00:00
llvm-config
llvm-cov [llvm-cov] Improvements for summary report generated in HTML format. 2018-01-31 17:37:21 +00:00
llvm-cvtres Fix buffer overrun in WindowsResourceCOFFWriter::writeSymbolTable() 2017-12-18 22:10:14 +00:00
llvm-cxxdump
llvm-cxxfilt
llvm-dlltool [COFF] Ignore semicolons in module definition identifiers 2017-12-06 19:18:24 +00:00
llvm-dwarfdump Add missing new files from r324077 2018-02-02 12:45:57 +00:00
llvm-dwp
llvm-extract [llvm-extract] Support extracting basic blocks 2018-01-23 21:51:34 +00:00
llvm-isel-fuzzer
llvm-lib [test] Move llvm-lib tests into tools/llvm-lib. NFC. 2017-11-02 20:05:20 +00:00
llvm-lit
llvm-lto [ThinLTO] Serialize WithGlobalValueDeadStripping index flag for distributed backends 2018-02-07 04:05:59 +00:00
llvm-lto2
llvm-mc
llvm-modextract
llvm-mt Change "UNSUPPORTED: windows" to be "UNSUPPORTED: system-windows" so that test is actually skipped on Windows. 2018-02-08 18:45:16 +00:00
llvm-nm llvm-nm should show a symbol type of T for symbols in the (__TEXT_EXEC,__text) section. 2018-01-31 00:00:41 +00:00
llvm-objcopy [llvm-objcopy] Fix handling of zero-size segments in llvm-objcopy 2018-02-14 23:31:33 +00:00
llvm-objdump [WebAssebmly] Report undefined symbols correctly in objdump 2018-02-09 20:21:50 +00:00
llvm-opt-fuzzer [llvm-opt-fuzzer] Only run tests for the x86 target. 2017-11-15 13:35:42 +00:00
llvm-opt-report
llvm-pdbdump [pdbutil] Replace 0 byte PDB input with correct version to fix failing unit test 2018-01-17 03:48:07 +00:00
llvm-profdata Profiling tests: Endianess XFAIL for powerpc- (32-bit) 2018-01-09 20:09:23 +00:00
llvm-rc
llvm-readobj Mark two tests REQUIRES: x86-registered-backend 2018-01-31 07:32:03 +00:00
llvm-size
llvm-split Make GlobalValues with non-default visibilility dso_local. 2018-01-18 02:08:23 +00:00
llvm-strings [llvm-strings] Add support for the -a/--all options 2017-11-14 19:58:36 +00:00
llvm-symbolizer
llvm-xray/X86
lto LTOModule::isBitcodeFile() shouldn't assert when returning false. 2017-10-31 16:39:47 +00:00
obj2yaml
opt-viewer Fix some opt-viewer test issues and disable on Windows. 2018-01-05 22:05:13 +00:00
sancov
sanstats
yaml2obj Add ELF dynamic symbol support to yaml2obj/obj2yaml 2017-11-16 18:10:15 +00:00