1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00
llvm-mirror/tools/llvm-objcopy
Jordan Rupprecht b34be145e0 [llvm-objcopy] Fix SHT_GROUP ordering.
Summary:
When llvm-objcopy sorts sections during finalization, it only sorts based on the offset, which can cause the group section to come after the sections it contains. This causes link failures when using gold to link objects created by llvm-objcopy.

Fix this for now by copying GNU objcopy's behavior of placing SHT_GROUP sections first. In the future, we may want to remove this sorting entirely to more closely preserve the input file layout.

This fixes https://bugs.llvm.org/show_bug.cgi?id=42052.

Reviewers: jakehehrlich, jhenderson, MaskRay, espindola, alexshap

Reviewed By: MaskRay

Subscribers: phuongtrang148993, emaste, arichardson, llvm-commits

Tags: #llvm

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

llvm-svn: 362973
2019-06-10 18:35:01 +00:00
..
COFF [llvm-objcopy] Tidy up error messages 2019-05-22 13:23:26 +00:00
ELF [llvm-objcopy] Fix SHT_GROUP ordering. 2019-06-10 18:35:01 +00:00
MachO Fix MSVC "32-bit shift implicitly converted to 64 bits" warning. NFCI. 2019-06-10 10:13:32 +00:00
Buffer.cpp [llvm-objcopy][NFC] Remove unnecessary llvm-objcopy.h #includes 2019-03-13 23:40:16 +00:00
Buffer.h [llvm-objcopy] Fix crash when writing empty binary output 2019-01-28 15:02:40 +00:00
CMakeLists.txt [llvm-objcopy] Add ability to copy MachO object files 2019-02-02 00:38:07 +00:00
CopyConfig.cpp llvm-objcopy: Implement --extract-partition and --extract-main-partition. 2019-06-07 17:57:48 +00:00
CopyConfig.h llvm-objcopy: Implement --extract-partition and --extract-main-partition. 2019-06-07 17:57:48 +00:00
llvm-objcopy.cpp [llvm-objcopy] test commit 2019-06-01 07:36:57 +00:00
llvm-objcopy.h Small refactoring of FileError. NFC. 2019-02-11 09:49:37 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ObjcopyOpts.td llvm-objcopy: Implement --extract-partition and --extract-main-partition. 2019-06-07 17:57:48 +00:00
StripOpts.td [llvm-strip]Add --no-strip-all to disable --strip-all behaviour (including default stripping) 2019-05-02 11:53:02 +00:00